Wednesday, April 27, 2016

Setting up an SMTP server

Email Server Roles

  • Email Transmission: SMTP
  • Email Reception: POP, IMAP
  • End user mail clients: Evolution, mutt
Configuring postfix
  • on server1
  • vim /etc/postfix/main.cf
    • inet_interfaces = all
    • myorigin = example.com
    • mydestination=
    • inet_protocols=ipv4
  • on server2
    • relayhost = [server1.example.com]
    • inet_interfaces = loopback-only
    • mynetworks = 127.0.0.0/8 [::1]/128
    • mydestination=
    • inet_protocols=ipv4
  • send mail from server2 to a user on server1.

No comments:

Post a Comment