Created
August 25, 2012 23:58
-
-
Save THUFIR/3472492 to your computer and use it in GitHub Desktop.
postfix config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@dur:/etc/postfix# | |
root@dur:/etc/postfix# diff main.cf main.cf.1 | |
7c7 | |
< myorigin = /etc/mailname | |
--- | |
> #myorigin = /etc/mailname | |
41,94d40 | |
< | |
< | |
< | |
< ###adding### | |
< | |
< | |
< # Requirements for the HELO statement | |
< smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit | |
< # Requirements for the sender details | |
< smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit | |
< # Requirements for the connecting server | |
< smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org | |
< # Requirement for the recipient address | |
< smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit smtpd_data_restrictions = reject_unauth_pipelining | |
< | |
< | |
< | |
< | |
< # require proper helo at connections | |
< # smtpd_helo_required = yes | |
< # waste spammers time before rejecting them | |
< # smtpd_delay_reject = yes | |
< # disable_vrfy_command = yes | |
< | |
< | |
< | |
< # not sure of the difference of the next two | |
< # but they are needed for local aliasing | |
< alias_maps = hash:/etc/postfix/aliases | |
< alias_database = hash:/etc/postfix/aliases | |
< # this specifies where the virtual mailbox folders will be located | |
< virtual_mailbox_base = /var/spool/mail/virtual | |
< # this is for the mailbox location for each user | |
< virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf | |
< # and this is for aliases virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf | |
< # and this is for domain lookups virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf | |
< # this is how to connect to the domains (all virtual, but the option is there) | |
< # not used yet | |
< # transport_maps = mysql:/etc/postfix/mysql_transport.cf | |
< | |
< | |
< virtual_uid_maps = static:5000 | |
< virtual_gid_maps = static:5000 | |
< | |
< | |
< | |
< | |
< | |
< # to add if there is not a virtual user | |
< # sudo mkdir /var/spool/mail/virtual sudo groupadd --system virtual -g 5000 | |
< # sudo useradd --system virtual -u 5000 -g 5000 | |
< # sudo chown -R virtual:virtual /var/spool/mail/virtual | |
< | |
< inet_protocols = ipv4 | |
root@dur:/etc/postfix# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment