SLES 12
Sponsored Link

Install Postfix
2015/11/25
 
Install Postfix to configure SMTP server. SMTP uses 25/TCP.
[1] Install Postfix.
mail:~ #
zypper -n install postfix
[2] This example shows to configure SMTP-Auth to use Dovecot's SASL function.
# rename to disable because

mail:~ #
mv /etc/sysconfig/postfix /etc/sysconfig/postfix.org
mail:~ #
vi /etc/postfix/main.cf
# line 91: uncomment and specify domain name

mydomain =
srv.world
# line 107: uncomment

myorigin = $mydomain
# line 268: uncomment and specify local network

mynetworks = 127.0.0.0/8,
10.0.0.0/24
# line 423: uncomment to move Maildir

home_mailbox = Maildir/
# line 673: change

inet_interfaces =
all
# line 678: add

mydestination = $myhostname, localhost.$mydomain
, localhost, $mydomain
# line 679: specify hostname

myhostname =
mail.srv.world
# line 693,694

# limit a mailbox for 1G

mailbox_size_limit =
1073741824

# limit an email size for 10M

message_size_limit =
10485760
# line 706: change

smtpd_recipient_restrictions =
permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject

# line 715-717: change & uncomment & add

smtpd_sasl_auth_enable =
yes

smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
mail:~ #
systemctl start postfix

mail:~ #
systemctl enable postfix

Matched Content
 
Tweet