SMTP send-only server


I need to install an SMTP server so that i can send email from other servers. I'm using PHP and would like to configure it to send emails through this specific server.

Is it possible to do this with exim? With something like: … an-5-lenny">

Thanks in advance

3 Replies

Assuming that the "other servers" are within your current linode, then that guide looks like it'll be fine (PHP will just use the sendmail-like binary provided by Exim). You may also want to set an appropriate reverse dns etc.

If the other servers are actually located elsewhere, then you'll need to set up relaying for those IP addresses (though, of course you'd need some way of sending the mail on those nodes, which would largely defeat the purpose in this case unless you have a common mount point).

I will be using a PHP Class that allows me to send email through a smtp transport. To be precise i will be using: … mails.html"> .

So I would like to send the emails through, for example,

So it's possible to do this with exim? I just need to configure the DNS?

I haven't used that class, but from a cursory glance it seems that it should be fine. Just configure Exim to act as a smarthost for your external server IP's.

From the api docs, it looks like zendmailtransport_smtp will accept an IP address, but if not, /etc/hosts may be simpler than full DNS. (Obviously, you'll still need MX records for those domains.)


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct