Ubuntu_14.04 [SOLVED]: Setting up a send-only mail server

Ubuntu_14.04 [SOLVED]: Setting up a send-only mail server

Home Forums Ubuntu 14.04 Ubuntu_14.04 [SOLVED]: Setting up a send-only mail server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11835

    Anonymous

    QuestionQuestion

    I’m trying to setup an easy mail server to support my “lost password” function in my website.

    I’d like to know if Exim is good or not, or is there any better solution?

    I would also like to know that it isn’t easy to manage an smtp server (such as blocking junk mail, or being hacked, etc), does setting up a send-only mail server cause any security issues?

    Thanks!

    #11837

    Anonymous

    Accepted AnswerAnswer

    Simple example to setup postfix with satellite SMTP

    1. install postfix

      sudo aptitude install postfix

    2. configure postfix

      sudo vi /etc/postfix/smtp_auth

      add your smtp authentication information in /etc/postfix/smtp_auth:

      smtp.foo.bar user@host:password

      and generate the postfix lookup table file (/etc/postfix/smtp_auth.db) using

      sudo postmap /etc/postfix/smtp_auth

      add the relayhost (outgoing smtp server e.g. smtp.foo.bar on port 587, depending your relay host info) information to /etc/postfix/main.cf:

      relayhost = [smtp.foo.bar]:587

      add the following lines to /etc/postfix/main.cf in order to enable smtp-auth for outgoing mails:

      smtp_sasl_auth_enable = yes
      smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
      smtp_sasl_security_options = noanonymous

    3. restart postfix

      sudo service postfix restart

    Source: https://askubuntu.com/questions/457003/setting-up-a-send-only-mail-server
    Author: mcantsin
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.