postfix non open relay setting

Hi,

i've changed from sendmail to postfix on my install of Ubuntu on my linode and am confused as to how best configure it.

the only way I can find to get it to relay mail for me without becoming an open relay is to use the following line in the local networks section of webmin control panel general module…

FQDNofclient_pc.com

smtpdsaslauth_enable = yes

smtpdrecipientrestrictions =

permit_mynetworks,

permitsaslauthenticated,

checkrelaydomains

the problem with this is that my adsl ip address is dynamic so i will have to update the FQDNofclient_pc.com each time it changes. this isn't a big problem but it's not very elegant.

I have to admin also to not really understanding how postfix organises itself. I did a couple of googles on this and the man pages weren't really helpful. they are more focused on a server physically connected to the network it is serving and not our set-up of a remote mail relay.

when i first installed postfix, i selected the internet option (just in case this makes a difference!)

any advice appreciated.

regards,

Ross

3 Replies

Have you referenced the Ubuntu wiki at all? There are a bunch of postfix-related articles there…

Your situation is what SASL was designed for. Start reading here.

I couldn't get SASL working, I use

http://popbsmtp.sourceforge.net/

Reply

Please enter an answer
Tips:

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] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct