<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://k2.ixota.com/index.php?action=history&amp;feed=atom&amp;title=Postfix</id>
	<title>Postfix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://k2.ixota.com/index.php?action=history&amp;feed=atom&amp;title=Postfix"/>
	<link rel="alternate" type="text/html" href="https://k2.ixota.com/index.php?title=Postfix&amp;action=history"/>
	<updated>2026-06-26T14:18:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://k2.ixota.com/index.php?title=Postfix&amp;diff=6017&amp;oldid=prev</id>
		<title>Kenneth: /* Dovecot */</title>
		<link rel="alternate" type="text/html" href="https://k2.ixota.com/index.php?title=Postfix&amp;diff=6017&amp;oldid=prev"/>
		<updated>2022-07-27T06:33:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Dovecot&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Configuration ==&lt;br /&gt;
&lt;br /&gt;
To see the currently configured options:&lt;br /&gt;
 postconf&lt;br /&gt;
&lt;br /&gt;
== SMTP Relay  ==&lt;br /&gt;
&lt;br /&gt;
=== Basic Relay ===&lt;br /&gt;
&lt;br /&gt;
Relay all outbound email thorough this relay host:&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
 relayhost = smtp.yourisp.com&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.gungeralv.org/notes/archives/2003/06/howto_configure_postfix_to_use_a_remote_smtp_relay_host.php Howto configure postfix to use a remote SMTP relay host]&lt;br /&gt;
&lt;br /&gt;
Other: [http://www.redhat.com/support/resources/howto/RH-postfix-HOWTO/c241.html#AEN244 RH: The Home User]&lt;br /&gt;
&lt;br /&gt;
=== Relay on another port ===&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
 transport_maps = hash:/etc/postfix/transport&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/transport:&lt;br /&gt;
 oeey.com smtp:50.1.1.1:10025&lt;br /&gt;
&lt;br /&gt;
Build hashmap:&lt;br /&gt;
 postmap transport&lt;br /&gt;
&lt;br /&gt;
=== Authenticated Relay ===&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
relayhost = 50.100.100.50&lt;br /&gt;
relay_domains = oeey.com&lt;br /&gt;
smtp_sasl_auth_enable = yes&lt;br /&gt;
smtp_sasl_mechanism_filter =&lt;br /&gt;
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;br /&gt;
smtp_sasl_security_options =&lt;br /&gt;
smtp_sasl_type = cyrus&lt;br /&gt;
# inet_interfaces = 127.0.0.1 50.1.1.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/sasl_passwd:&lt;br /&gt;
 50.100.100.50    hsg-knowledgebase:h$g$!@#123&lt;br /&gt;
&lt;br /&gt;
Build hashmap:&lt;br /&gt;
 postmap sasl_passwd&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
&lt;br /&gt;
Verify configuration that works:&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
 relayhost = [SMTP_SERVER_ADDRESS]&lt;br /&gt;
 smtp_sasl_auth_enable = yes&lt;br /&gt;
 smtp_sasl_password_maps = hash:/etc/postfix/smtp_relay_password&lt;br /&gt;
 smtp_sasl_security_options =&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/sasl_passwd:&lt;br /&gt;
 [SMTP_SERVER_ADDRESS]       username:password&lt;br /&gt;
&lt;br /&gt;
 postmap /etc/postfix/sasl_passwd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.postfix.org/SASL_README.html#client_sasl Postfix SASL Howto: Enabling SASL authentication in the Postfix SMTP client]:&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&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_type = cyrus&lt;br /&gt;
    relayhost = [mail.myisp.net]&lt;br /&gt;
    # Alternative form:&lt;br /&gt;
    # relayhost = [mail.myisp.net]:submission&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/sasl_passwd:&lt;br /&gt;
    [mail.myisp.net]            username:password&lt;br /&gt;
    [mail.myisp.net]:submission username:password&lt;br /&gt;
&lt;br /&gt;
Execute the command &amp;quot;postmap /etc/postfix/sasl_passwd&amp;quot; whenever you change the sasl_passwd table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.redwall-firewall.com/index.php/Implementing_Upstream_SMTP_Authentication_for_Postfix Implementing Upstream SMTP Authentication for Postfix - RedWall]:&lt;br /&gt;
* Includes instructions for both basic and TLS relay host authentication&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.cyberciti.biz/faq/postfix-smtp-authentication-for-mail-servers/ Postfix Configure Client SMTP Authentication ( Smarthost Authentication )]:&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/password:&lt;br /&gt;
 #smtp.isp.com       username:password&lt;br /&gt;
 smtp.vsnl.in         vivek@vsnl.in:mySecretePassword&lt;br /&gt;
&lt;br /&gt;
 chown root:root /etc/postfix/password&lt;br /&gt;
 chmod 0600 /etc/postfix/password&lt;br /&gt;
 postmap hash:/etc/postfix/password&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
 relayhost = smtp.vsnl.in&lt;br /&gt;
 smtp_sasl_auth_enable = yes&lt;br /&gt;
 smtp_sasl_password_maps = hash:/etc/postfix/password&lt;br /&gt;
 smtp_sasl_security_options =&lt;br /&gt;
&lt;br /&gt;
Execute:&lt;br /&gt;
 /etc/init.d/postfix reload&lt;br /&gt;
&lt;br /&gt;
Test:&lt;br /&gt;
 echo -e &amp;quot;Subject: test\n\ntest&amp;quot; | mail -s &amp;#039;Test&amp;#039; some@email.com&lt;br /&gt;
 tail -f /var/log/maillog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://episteme.arstechnica.com/eve/forums/a/tpc/f/469092836/m/868002214831 Postfix relay to authenticated ISP SMTP server? - Topic Powered by Eve For Enterprise]&lt;br /&gt;
 smtp_sasl_auth_enable = yes&lt;br /&gt;
 smtp_sasl_security_options = noanonymous&lt;br /&gt;
 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd #&amp;lt;------------You need to create this file.&lt;br /&gt;
 smtp_sasl_type = cyrus&lt;br /&gt;
 smtp_sasl_mechanism_filter = plain, login #&amp;lt;------- List of supported AUTH methods. My ISP &lt;br /&gt;
                                           # lies and says they support other methods - they don&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Some howtos I googled:&lt;br /&gt;
* http://www.postfix.org/SASL_README.html&lt;br /&gt;
* [http://www.nervous.it/txt/Postfix-SMTP-AUTH-4-DUMMIES.html Postfix SMTP-AUTH 4 DUMMIES]&lt;br /&gt;
* http://www.thecabal.org/~devin/postfix/smtp-auth.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Issues ====&lt;br /&gt;
&lt;br /&gt;
===== No worthy mechs found =====&lt;br /&gt;
&lt;br /&gt;
If you get the following error:&lt;br /&gt;
 Jul 30 09:44:43 HSG-KB1 postfix/smtp[18240]: warning: SASL authentication failure: No worthy mechs found&lt;br /&gt;
 Jul 30 09:44:43 HSG-KB1 postfix/smtp[18240]: 3C479170051F: ... status=deferred&lt;br /&gt;
     (SASL authentication failed; cannot authenticate to server 50.100.100.50[50.100.100.50]: no mechanism available)&lt;br /&gt;
&lt;br /&gt;
This means your postfix installation is missing the basic auth mechanisms:&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
 yum install cyrus-sasl-plain  # red hat&lt;br /&gt;
 apt-get install libsasl2-modules  # debian&lt;br /&gt;
&lt;br /&gt;
This will install several libraries to:&lt;br /&gt;
 /usr/lib/sasl2/&lt;br /&gt;
&lt;br /&gt;
== Outbound Alias ==&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf:&lt;br /&gt;
 smtp_generic_maps = hash:/etc/postfix/generic&lt;br /&gt;
&lt;br /&gt;
 echo &amp;#039;root yourusername@yourdomain.com&amp;#039; &amp;gt;&amp;gt; /etc/postfix/generic&lt;br /&gt;
 echo &amp;#039;www-data yourusername@yourdomain.com&amp;#039; &amp;gt;&amp;gt; /etc/postfix/generic&lt;br /&gt;
 postmap /etc/postfix/generic&lt;br /&gt;
 service postfix restart&lt;br /&gt;
&lt;br /&gt;
Ref: email - Change outgoing mail address from root@servername - rackspace sendgrid postfix - Stack Overflow - https://stackoverflow.com/questions/14370224/change-outgoing-mail-address-from-rootservername-rackspace-sendgrid-postfix&lt;br /&gt;
&lt;br /&gt;
== Delete ALL Messages in Queue ==&lt;br /&gt;
&lt;br /&gt;
Delete ALL Messages:&lt;br /&gt;
 postsuper -d ALL&lt;br /&gt;
&lt;br /&gt;
Source: [http://daveshuck.instantspot.com/blog/2008/01/13/How-to-delete-all-messages-from-Postfix-mail-server-queue Dave Shuck&amp;#039;s InstantSpot - How to delete all messages from Postfix mail server queue]&lt;br /&gt;
&lt;br /&gt;
== Count Messages in Queue ==&lt;br /&gt;
&lt;br /&gt;
 mailq&lt;br /&gt;
&lt;br /&gt;
 ### sudo find /var/spool/postfix/deferred/. ! -name &amp;#039;?&amp;#039; -print | wc -l&lt;br /&gt;
&lt;br /&gt;
== Drop ALL Outbound Mail ==&lt;br /&gt;
&lt;br /&gt;
HOWTO: Postfix Drop Outbound External Mail:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;While testing an application, a user requested that I configure the mail server to only deliver to addresses within our company, but drop all mail sent outside. (We don’t want to accidentally bother customers.)&lt;br /&gt;
&lt;br /&gt;
I was a little frustrated by this problem, but now I have a solution. The trick is to set up a transport map that leaves mail destined for our local domain as-is, but then drops everything else.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
First, set up a transport file:&lt;br /&gt;
 # cat transport&lt;br /&gt;
 mydomain.com      :&lt;br /&gt;
 .mydomain.com     :&lt;br /&gt;
 *          discard:&lt;br /&gt;
&lt;br /&gt;
Map it:&lt;br /&gt;
 # postmap transport&lt;br /&gt;
&lt;br /&gt;
Configure transport_maps in main.cf:&lt;br /&gt;
 transport_maps = hash:/path/to/transport&lt;br /&gt;
&lt;br /&gt;
Reload Postfix and send test messages. The discard service successfully “delivers” messages straight to the trash, like so:&lt;br /&gt;
 Sep 15 14:55:10 myhost postfix/discard[16189]: 6F0A22E04E: to=&amp;lt;dannyman@toldme.com&amp;gt;, relay=none, delay=0, status=sent (toldme.com)&lt;br /&gt;
&lt;br /&gt;
Source [http://dannyman.toldme.com/2008/09/15/howto-postfix-deliver-external-devnull/ dannyman.toldme.com : HOWTO: Postfix Drops Outbound External Mail]&lt;br /&gt;
&lt;br /&gt;
== Deliver all mail to one box ==&lt;br /&gt;
&lt;br /&gt;
Create /etc/postfix/virtual-regexp with the following content:&lt;br /&gt;
&lt;br /&gt;
 /.+@.+/ email@gmail.com&lt;br /&gt;
&lt;br /&gt;
Edit /etc/postfix/main.cf and add regexp:/etc/postfix/virtual-regexp to the virtual_maps configuration. The end result might look like this in main.cf:&lt;br /&gt;
&lt;br /&gt;
 virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp&lt;br /&gt;
&lt;br /&gt;
Build the mapfile by typing:&lt;br /&gt;
&lt;br /&gt;
 postmap /etc/postfix/virtual-regexp&lt;br /&gt;
&lt;br /&gt;
This also requires a virtual.db to exist. If it doesn&amp;#039;t create an empty file called virtual and run : postmap /etc/postfix/virtual&lt;br /&gt;
&lt;br /&gt;
Source:&lt;br /&gt;
* How to redirect all postfix emails to one external email address? - Server Fault - http://serverfault.com/questions/144325/how-to-redirect-all-postfix-emails-to-one-external-email-address&lt;br /&gt;
&lt;br /&gt;
== Config Include Directive ==&lt;br /&gt;
&lt;br /&gt;
Q: Is there some kind of &amp;#039;include&amp;#039; directive for main.cf? [http://www.seaglass.com/postfix/faq.html#exinc]&lt;br /&gt;
&lt;br /&gt;
A: No. Most administrators with complex configurations create a Makefile that will cat the necessary files together. If you have other regular administrative tasks, add them to your Makefile too. Your Makefile can have an entry something like this:&lt;br /&gt;
&lt;br /&gt;
main.cf: file1 file2 file3&lt;br /&gt;
        cat file1 file2 file3 &amp;gt; main.cf.new&lt;br /&gt;
        mv main.cf.new main.cf&lt;br /&gt;
&lt;br /&gt;
Then type make main.cf to rebuild your configuration file.&lt;br /&gt;
&lt;br /&gt;
== mail aliases ==&lt;br /&gt;
&lt;br /&gt;
 aliases - Postfix local alias database format&lt;br /&gt;
&lt;br /&gt;
/etc/aliases:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# See man 5 aliases for format&lt;br /&gt;
postmaster:    kenneth&lt;br /&gt;
root:          kenneth&lt;br /&gt;
plex:          kenneth, paul&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
 newaliases - Initialize the alias database&lt;br /&gt;
&lt;br /&gt;
 newaliases&lt;br /&gt;
&lt;br /&gt;
== Cyrus ==&lt;br /&gt;
&lt;br /&gt;
POP3 and IMAP server.&lt;br /&gt;
&lt;br /&gt;
 yum install cyrus-imapd cyrus-sasl-plain&lt;br /&gt;
 service cyrus-imapd restart&lt;br /&gt;
&lt;br /&gt;
Config file: /etc/cyrus.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SERVICES {&lt;br /&gt;
  # add or remove based on preferences&lt;br /&gt;
  imap          cmd=&amp;quot;imapd&amp;quot; listen=&amp;quot;imap&amp;quot; prefork=5&lt;br /&gt;
  imaps         cmd=&amp;quot;imapd -s&amp;quot; listen=&amp;quot;imaps&amp;quot; prefork=1&lt;br /&gt;
  pop3          cmd=&amp;quot;pop3d&amp;quot; listen=&amp;quot;pop3&amp;quot; prefork=3&lt;br /&gt;
  pop3s         cmd=&amp;quot;pop3d -s&amp;quot; listen=&amp;quot;pop3s&amp;quot; prefork=1&lt;br /&gt;
  sieve         cmd=&amp;quot;timsieved&amp;quot; listen=&amp;quot;sieve&amp;quot; prefork=0&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cyrus Issues ===&lt;br /&gt;
&lt;br /&gt;
/var/log/maillog:&lt;br /&gt;
 badlogin: ws-202-73.oeey.net [216.119.202.73] PLAIN encryption needed to use mechanism&lt;br /&gt;
&lt;br /&gt;
service saslauthd restart&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Apr  7 17:39:09 ws-199-19 pop3[3903]: unable to open Berkeley db /etc/sasldb2: No such file or directory&lt;br /&gt;
&lt;br /&gt;
==&amp;gt; /var/log/maillog &amp;lt;==&lt;br /&gt;
Apr  7 17:39:09 ws-199-19 pop3[3903]: accepted connection&lt;br /&gt;
Apr  7 17:39:09 ws-199-19 master[3956]: about to exec /usr/lib/cyrus-imapd/pop3d&lt;br /&gt;
Apr  7 17:39:09 ws-199-19 pop3[3956]: executed&lt;br /&gt;
Apr  7 17:39:09 ws-199-19 pop3[3903]: badlogin: ws-202-73.oeey.net [216.119.202.73] APOP (&amp;lt;2253906216.1302219549@otrs.oeey.org&amp;gt;) SASL(-13): user not found: could not find password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;gt; /var/log/messages &amp;lt;==&lt;br /&gt;
Apr  7 17:39:57 ws-199-19 pop3[3903]: unable to open Berkeley db /etc/sasldb2: No such file or directory&lt;br /&gt;
&lt;br /&gt;
==&amp;gt; /var/log/maillog &amp;lt;==&lt;br /&gt;
Apr  7 17:39:57 ws-199-19 pop3[3903]: badlogin: ws-202-73.oeey.net [216.119.202.73] APOP (&amp;lt;2253906216.1302219549@otrs.oeey.org&amp;gt;) SASL(-13): user not found: could not find password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
saslpasswd2 -f /etc/sasldb2 -a root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;gt; /var/log/messages &amp;lt;==&lt;br /&gt;
Apr  7 17:45:02 ws-199-19 pop3[4243]: unable to open Berkeley db /etc/sasldb2: Permission denied&lt;br /&gt;
&lt;br /&gt;
chmod 664 sasldb2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;gt; /var/log/maillog &amp;lt;==&lt;br /&gt;
Apr  7 17:45:38 ws-199-19 pop3[4243]: Unable to locate maildrop user.root: Mailbox does not exist&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vi main.cf&lt;br /&gt;
&lt;br /&gt;
#inet_interfaces = all&lt;br /&gt;
#inet_interfaces = $myhostname&lt;br /&gt;
#inet_interfaces = $myhostname, localhost&lt;br /&gt;
#inet_interfaces = localhost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dovecot ==&lt;br /&gt;
&lt;br /&gt;
POP3 and IMAP server&lt;br /&gt;
&lt;br /&gt;
NOTE: Much easier to configure than cyrus!!&lt;br /&gt;
&lt;br /&gt;
Installation:&lt;br /&gt;
 # Ubuntu&lt;br /&gt;
 sudo apt-get install dovecot-imapd dovecot-pop3d&lt;br /&gt;
&lt;br /&gt;
 # Centos&lt;br /&gt;
 yum install dovecot&lt;br /&gt;
 service dovecot restart&lt;br /&gt;
&lt;br /&gt;
Config File: /etc/dovecot.conf&lt;br /&gt;
&lt;br /&gt;
=== Quick Dovecot Setup ===&lt;br /&gt;
&lt;br /&gt;
You can use Dovecot for mail server&lt;br /&gt;
&lt;br /&gt;
Install the packages&lt;br /&gt;
 sudo apt-get install dovecot-imapd dovecot-pop3d&lt;br /&gt;
&lt;br /&gt;
Configure the protocol you need to be used by appending the protocol in the file /etc/dovecot/dovecot.conf:&lt;br /&gt;
 protocols = pop3 pop3s imap imaps&lt;br /&gt;
&lt;br /&gt;
Choose the mailbox you would like to use. Dovecot supports maildir and mbox formats. Edit the file /etc/dovecot/dovecot.conf and change the line&lt;br /&gt;
 mail_location = maildir:~/Maildir # (for maildir)&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
 mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u # (for mbox)&lt;br /&gt;
&lt;br /&gt;
Restart the service&lt;br /&gt;
 sudo /etc/init.d/dovecot restart&lt;br /&gt;
&lt;br /&gt;
Use telnet to check that dovecot is working properly.&lt;br /&gt;
 telnet localhost imap&lt;br /&gt;
&lt;br /&gt;
ref: [https://askubuntu.com/questions/346528/easiest-way-to-set-up-an-imap-mail-server]&lt;br /&gt;
&lt;br /&gt;
=== Dovecot issues ===&lt;br /&gt;
&lt;br /&gt;
==== root not permitted ====&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
==&amp;gt; /var/log/maillog &amp;lt;==&lt;br /&gt;
Apr  7 17:53:32 ws-199-19 dovecot: pop3-login: Disconnected: rip=::ffff:216.119.202.73, lip=::ffff:216.119.199.19&lt;br /&gt;
Apr  7 17:53:42 ws-199-19 dovecot: Logins with UID 0 not permitted (user root)&lt;br /&gt;
Apr  7 17:53:42 ws-199-19 dovecot: pop3-login: Internal login failure: user=&amp;lt;root&amp;gt;, method=PLAIN, rip=::ffff:216.119.202.73, lip=::ffff:216.119.199.19&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Valid UID range for users, defaults to 500 and above. This is mostly&lt;br /&gt;
# to make sure that users can&amp;#039;t log in as daemons or other system users.&lt;br /&gt;
# Note that denying root logins is hardcoded to dovecot binary and can&amp;#039;t&lt;br /&gt;
# be done even if first_valid_uid is set to 0.&lt;br /&gt;
#first_valid_uid = 500&lt;br /&gt;
#last_valid_uid = 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: that denying root logins is hardcoded to dovecot binary and can&amp;#039;t be don&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Ubuntu Internet Server with Smart Host ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# main.cf&lt;br /&gt;
&lt;br /&gt;
# See /usr/share/postfix/main.cf.dist for a commented, more complete version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Debian specific:  Specifying a file name will cause the first&lt;br /&gt;
# line of that file to be used as the name.  The Debian default&lt;br /&gt;
# is /etc/mailname.&lt;br /&gt;
#myorigin = /etc/mailname&lt;br /&gt;
&lt;br /&gt;
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)&lt;br /&gt;
biff = no&lt;br /&gt;
&lt;br /&gt;
# appending .domain is the MUA&amp;#039;s job.&lt;br /&gt;
append_dot_mydomain = no&lt;br /&gt;
&lt;br /&gt;
# Uncomment the next line to generate &amp;quot;delayed mail&amp;quot; warnings&lt;br /&gt;
#delay_warning_time = 4h&lt;br /&gt;
&lt;br /&gt;
readme_directory = no&lt;br /&gt;
&lt;br /&gt;
# TLS parameters&lt;br /&gt;
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem&lt;br /&gt;
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key&lt;br /&gt;
smtpd_use_tls=yes&lt;br /&gt;
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache&lt;br /&gt;
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache&lt;br /&gt;
&lt;br /&gt;
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for&lt;br /&gt;
# information on enabling SSL in the smtp client.&lt;br /&gt;
&lt;br /&gt;
myhostname = prf.oeey.us&lt;br /&gt;
alias_maps = hash:/etc/aliases&lt;br /&gt;
alias_database = hash:/etc/aliases&lt;br /&gt;
myorigin = /etc/mailname&lt;br /&gt;
mydestination = prf.oeey.us, localhost.oeey.us, localhost&lt;br /&gt;
relayhost = mx1.oeey.us&lt;br /&gt;
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128&lt;br /&gt;
mailbox_size_limit = 0&lt;br /&gt;
recipient_delimiter = +&lt;br /&gt;
inet_interfaces = all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prime Server Old ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# main.cf&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# KENNETH&amp;#039;S CONFIGURATION&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# Host name&lt;br /&gt;
# The myhostname parameter specifies the internet hostname of this mail system.&lt;br /&gt;
myhostname = t0e.org&lt;br /&gt;
&lt;br /&gt;
# Banner&lt;br /&gt;
# default: smtpd_banner = $myhostname ESMTP $mail_name&lt;br /&gt;
smtpd_banner = $myhostname ESMTP&lt;br /&gt;
&lt;br /&gt;
# Mailbox style&lt;br /&gt;
#home_mailbox = Mailbox&lt;br /&gt;
home_mailbox = .mail/&lt;br /&gt;
&lt;br /&gt;
# Set mailbox size limit to unlimited&lt;br /&gt;
mailbox_size_limit = 0&lt;br /&gt;
&lt;br /&gt;
# List of domains this is the final destination for (comma seperated)&lt;br /&gt;
mydestination = $myhostname, localhost.$mydomain, localhost&lt;br /&gt;
&lt;br /&gt;
# Authorized networks able to relay email (comma seperated)&lt;br /&gt;
mynetworks = 127.0.0.0/8, 10.10.10.0/24&lt;br /&gt;
&lt;br /&gt;
# Listen on all interfaces for connections&lt;br /&gt;
inet_interfaces = all&lt;br /&gt;
&lt;br /&gt;
# Virtual alias map table&lt;br /&gt;
#virtual_maps = hash:/etc/postfix/virtual&lt;br /&gt;
&lt;br /&gt;
# SASL Auth Settings&lt;br /&gt;
#smtpd_sasl_auth_enable = yes&lt;br /&gt;
#smtpd_sasl_security_options = noanonymous&lt;br /&gt;
#smtpd_sasl_local_domain = $myhostname&lt;br /&gt;
#broken_sasl_auth_clients = yes&lt;br /&gt;
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination&lt;br /&gt;
&lt;br /&gt;
# TLS&lt;br /&gt;
#smtpd_use_tls = yes&lt;br /&gt;
#smtpd_tls_cert_file = /etc/qa.contractpal.com.pem&lt;br /&gt;
#smtpd_tls_key_file = $smtpd_tls_dcert_file&lt;br /&gt;
&lt;br /&gt;
# Outbound smtp relay (if needed)&lt;br /&gt;
#relayhost =&lt;br /&gt;
&lt;br /&gt;
# Transport for relay&lt;br /&gt;
#transport_maps = hash:/etc/postfix/transport&lt;br /&gt;
#relayhost = smtp.gmail.com&lt;br /&gt;
#relay_domains = k.ttak.org&lt;br /&gt;
#smtp_sasl_auth_enable = yes&lt;br /&gt;
#smtp_sasl_mechanism_filter =&lt;br /&gt;
#smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;br /&gt;
#smtp_sasl_security_options =&lt;br /&gt;
#smtp_sasl_type = cyrus&lt;br /&gt;
&lt;br /&gt;
#virtual_alias_maps = hash:/etc/postfix/virtual&lt;br /&gt;
virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
transport&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t0e.org     :&lt;br /&gt;
.t0e.org    :&lt;br /&gt;
*           discard:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
virtual-regexp  (postmap virtual-regexp)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/.+@.+/     kenneth@t0e.org&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sasl_passwd:  (postmap sasl_passwd)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
smtp.gmail.com  kenneth@oeey.com:password12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
		
	</entry>
</feed>