Cannot Send Email

noticed this in mail log:

Sep 19 18:36:11 ubuntu postfix/smtpd[7638]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit

How do I fix this?

Status: 
Closed (fixed)

Comments

Sounds like you should add one of those to the smtpd_recipient_restrictions list ;-)

By default, the smtpd_recipient_restrictions is set to:

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

You can set that in /etc/postfix/main.cf -- after editing that, you should restart Postfix with "/etc/init.d/postfix restart"

What is the output from :

grep smtpd_recipient_restrictions /etc/postfix/main.cf /etc/postfix/master.cf

Sorry, Eric .. assigning this back to you :-)

norman@ubuntu:~$ grep smtpd_recipient_restrictions /etc/postfix/main.cf /etc/postfix/master.cf /etc/postfix/main.cf:smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_inet_interfaces permit_mx_backup

norman@ubuntu:~$

I would hope to to that from the webmin console not the terminal. Edited main.cf as instructed. Now what?

Did you restart Postfix?

If not, go ahead and restart it, and see if that error is gone.

restarted still cannot send email.

Is the error about "smtpd_recipient_restrictions" gone now?

When you go to send an email, what errors do you see, in both your email client, as well as in the mail logs (/var/log/mail.log)?

Also, are you sure you've enabled authentication for Outgoing SMTP messages in your email client? That's not a default, at least in some versions.

grep smtpd_recipient_restrictions /etc/postfix/main.cf /etc/postfix/master.cf

Response: /etc/postfix/main.cf:smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated permit_inet_interfaces permit_mx_backup

Postfix should work right out of the box. Is there anyway to reset it to "default" settings?

My ISP is scheduled to launch this week and my customers still cannot send email.

Correct, Postfix should work correctly for multi-user email immediately after installing Virtualmin with the install.sh script.

There's no way to revert to the original settings unless you have a backup of the files before any changes were made.

We can help solve the problem, but the next step is to look over the questions I had mentioned above -- we can help given enough information about the problem.

However, I can offer that the default settings for "smtpd_recipient_restrictions" is:

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

If that's not what you have, and you're still receiving error messages about that parameter, you might try using that and working from there.

Error message has changed not I'm getting:

Sep 22 18:09:44 ubuntu postfix/smtpd[5093]: fatal: no SASL authentication mechanisms

Automatically closed -- issue fixed for 2 weeks with no activity.