- #yum install postfix
- #service postfix restart
- #chkconfig postfix on
- #vim /etc/postfix/main.cf
- Line 83 --> Uncomment & put domain name
- mydomain=example.com
- Line 99 --> Uncomment & put domain name
- myorigin=example.com
- Line 113 --> Uncomment
- inet_interfaces=all
- Line 116 --> Comment it
- #inet_interfaces=localhost
- Line 164 --> Comment it
- #mydestination=$myhostname,localhost,$mydomain,localhost
- Line 165 --> Uncomment
- mydestination=$myhostname,localhost.$mydomain,localhost,$mydomain
- #service postfix restart
- Forward the mail from hr@example.com to employee@example.com
- #vim /etc/postfix/virtual
- Go to last line (shift+g) and append following:
- hr@example.com employee@example.com
- Copy Line 158-159 of /etc/postfix/virtual & Paste in the end of /etc/postfix/virtual and Uncomment it
- #vim /etc/postfix/virtual
- #postmap /etc/postfix/main.cf
- Create alias for hr for employee, like any mail coming to hr@example.com should be delivered to employee@example.com as well
- #vim /etc/aliases
- Go to last line, append following
- hr : employee
Wednesday, 4 September 2013
Configuring SMTP (POSTFIX)
Labels:
configuring smtp,
linux,
postfix,
smtp
Subscribe to:
Post Comments (Atom)
8. Copy Line 158-159 of /etc/postfix/virtual & Paste in the end of /etc/postfix/main.cf and Uncomment it.
ReplyDeleteOther than, your blog is excellent.