smtpd_relay_restrictions

Hello folks,

Need your help in understanding this issue.

When configuring Postfix, in the original file /etc/postfix/main.cf, the following entry is found:

smtpdrelayrestrictions = permitmynetworks permitsaslauthenticated deferunauth_destination

But in the tutorial (https://www.linode.com/docs/email/email … -and-mysql">https://www.linode.com/docs/email/email-with-postfix-dovecot-and-mysql), this entry is omitted. Just wanted to confirm if this omission is intentional, considering this relates to smtpd relay restrictions.

Please confirm.

Thanks for help.

5 Replies

Your entry is the same as the default, so you should get the same result with or without it.

http://www.postfix.org/postconf.5.html# … strictions">http://www.postfix.org/postconf.5.html#smtpdrelayrestrictions

> smtpdrelayrestrictions (default: permitmynetworks, permitsaslauthenticated, deferunauth_destination)

Thanks Stever.

Are you saying that this entry "smtpdrelayrestrictions = permitmynetworks permitsaslauthenticated deferunauth_destination" has no affect?

The default main.cf has this entry but not in the tutorial.

Thanks for your help.

Yes, the postfix default is the value that parameter will have if you don't put anything into main.cf (or elsewhere) to change it. So specifying it in main.cf as the same value that it had by default makes no difference at all.

Hi Stever. Many thanks for clarifying this.

Cheers.

When in doubt, do not look at the configuration file, look at how postfix processes it, by running postconf

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