1

I want my scripts on the server to be able to send emails, but via outside, 3rd party mail service for which I'm paying anyway. I have exim and even dovecot installed anyway, but I suppose i will need only exim for this? However, I have absolutely no idea about emails and how to set it up. Found some tutorials about exim but they seem to be outdated.

Everything I have installed including the OS (Ubuntu) is the latest versions installed just few days ago.

Currently im using this 3rd party email just locally with thunderbird and have all the server information needed.

2 Answers 2

3

exim is a complex tool, and you need to have a good grasp of it in order to use it. The definitive guide is The Exim SMTP mail server, written by Philip Hazel, the primary author of exim. You should read it.

That said, what you're looking for is what exim calls a "smart host" - a host that exim can hand outgoing mail to for delivery. In Debian or Ubuntu, you can set a smarthost in exim in either of two ways:

  1. Edit /etc/exim4/update-exim4.conf.conf and set

    dc_eximconfig_configtype='smarthost'
    dc_smarthost='<name_of_smart_host>::<port>'
    

    Then run update-exim4.conf.

  2. Run dpkg-reconfigure exim4-config, or apt-get --reinstall install exim4-config. Follow the setup prompts, and choose the smarthost option.

2
  • sounds daunting but i'll try it later tomorrow thank you!
    – lixolumi
    Feb 2, 2015 at 19:40
  • ok i made those changes, where I should enter the username and password for authenticating to this outside smtp server though?
    – lixolumi
    Feb 3, 2015 at 19:26
0

I don't know why you'd want postfix or exim for relaying your mails, but if you don't depend on them, you could also look into sSMTP. Quite easy to configure and very lightweight.

1
  • well only because I already have it preinstalled with my control panel
    – lixolumi
    Feb 2, 2015 at 12:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .