SLES 11 SP4
Sponsored Link

Install Postfix2015/12/06

 
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 678: change to your own hostname

myhostname =
mail.srv.world
# line 681: change

inet_interfaces =
all
# line 683: add

mydestination = $myhostname, localhost.$mydomain
, localhost, $mydomain
# line 697: change

smtpd_recipient_restrictions =
permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject

# line 699: change & add

smtpd_sasl_auth_enable =
yes

smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
# line 704,705

# limit a mailbox for 1G

mailbox_size_limit =
1073741824

# limit an email size for 10M

message_size_limit =
10485760
mail:~ #
vi /etc/sasl2/smtpd.conf
# make sure the settings like follows

pwcheck_method: saslauthd
mech_list: plain login
mail:~ #
/etc/init.d/postfix start

mail:~ #
/etc/init.d/saslauthd start

mail:~ #
chkconfig postfix on

mail:~ #
chkconfig saslauthd on

Matched Content