<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://www.vanderschaft.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Postmap_for_relaying_mails</id>
	<title>Postmap for relaying mails - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://www.vanderschaft.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Postmap_for_relaying_mails"/>
	<link rel="alternate" type="text/html" href="https://www.vanderschaft.net/mediawiki/index.php?title=Postmap_for_relaying_mails&amp;action=history"/>
	<updated>2026-09-12T05:11:45Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://www.vanderschaft.net/mediawiki/index.php?title=Postmap_for_relaying_mails&amp;diff=32&amp;oldid=prev</id>
		<title>Dschaft: Nieuwe pagina aangemaakt met &#039;To configure Postfix to use a relay password, create a sasl_passwd file, hash it with postmap, and set permissions.  Use [smtp.example.com]:587 username:password in /etc/postfix/sasl_passwd, then run:   sudo postmap /etc/postfix/sasl_passwd  sudo chown root:root /etc/postfix/sasl_passwd*  sudo chmod 0600 /etc/postfix/sasl_passwd*.   Steps to Configure Postfix Relay Password:  Create/Edit Password File: Create a file named /etc/postfix/sasl_passwd and add your…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.vanderschaft.net/mediawiki/index.php?title=Postmap_for_relaying_mails&amp;diff=32&amp;oldid=prev"/>
		<updated>2026-03-19T06:34:18Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;To configure Postfix to use a relay password, create a sasl_passwd file, hash it with postmap, and set permissions.  Use [smtp.example.com]:587 username:password in /etc/postfix/sasl_passwd, then run:   sudo postmap /etc/postfix/sasl_passwd  sudo chown root:root /etc/postfix/sasl_passwd*  sudo chmod 0600 /etc/postfix/sasl_passwd*.   Steps to Configure Postfix Relay Password:  Create/Edit Password File: Create a file named /etc/postfix/sasl_passwd and add your…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To configure Postfix to use a relay password,&lt;br /&gt;
create a sasl_passwd file, hash it with postmap, and set permissions. &lt;br /&gt;
Use [smtp.example.com]:587 username:password in /etc/postfix/sasl_passwd, then run:&lt;br /&gt;
&lt;br /&gt;
 sudo postmap /etc/postfix/sasl_passwd&lt;br /&gt;
 sudo chown root:root /etc/postfix/sasl_passwd*&lt;br /&gt;
 sudo chmod 0600 /etc/postfix/sasl_passwd*. &lt;br /&gt;
&lt;br /&gt;
Steps to Configure Postfix Relay Password:&lt;br /&gt;
&lt;br /&gt;
Create/Edit Password File: Create a file named /etc/postfix/sasl_passwd and add your relay server credentials:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    sudo nano /etc/postfix/sasl_passwd&lt;br /&gt;
&lt;br /&gt;
Add the following line, replacing with your relay server&amp;#039;s address, port, username, and password:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    [smtp.provider.com]:587  username@domain.com:password&lt;br /&gt;
&lt;br /&gt;
Generate Hash Database: Run postmap to convert the text file into a format Postfix can read:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    sudo postmap /etc/postfix/sasl_passwd&lt;br /&gt;
&lt;br /&gt;
This creates a sasl_passwd.db file in the same directory.&lt;br /&gt;
Secure the File: Because this file contains plaintext credentials, restrict access to only the root user:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db&lt;br /&gt;
    sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db&lt;br /&gt;
&lt;br /&gt;
Configure Main.cf: Ensure your /etc/postfix/main.cf is configured to use the password file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    smtp_sasl_auth_enable = yes&lt;br /&gt;
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;br /&gt;
    smtp_sasl_security_options = noanonymous&lt;br /&gt;
    smtp_use_tls = yes&lt;br /&gt;
    relayhost = [smtp.provider.com]:587&lt;br /&gt;
&lt;br /&gt;
Restart Postfix: Reload Postfix to apply the changes&lt;br /&gt;
&lt;br /&gt;
    sudo systemctl restart postfix&lt;/div&gt;</summary>
		<author><name>Dschaft</name></author>
	</entry>
</feed>