Need email server aid
Alvin Thompson
alvin at thompsonlogic.com
Wed Apr 21 17:17:57 UTC 2010
On 04/21/2010 12:41 PM, Chuck Kuecker wrote:
> The Ubuntu machine relays emails from my Windows machine just fine, but
> when I try to relay an email from an embedded system I am working with,
> that resides on my local network, I get error messages in mail.log -
> 'relay access denied'. Sending email from the embedded system to my
> local email account works fine.
...
> I've enabled the entire local network here in /etc/postfix/main.cf -
> mynetworks = 127.0.0.0/8, 192.168.0.0/16. My Windows machine SMTP is set
> to use TLS, if available, and my user name. I'm thinking that I need to
> send my user name and password somehow, in order to get relaying to
> work. I don't see any SMTP commands that would do this.
You should not have to use a name and password if the computer is on a
trusted network. You've already done the first part (adding your
network to 'mynetworks'). You also need to tell postfix to allow
relaying from those networks. Under 'smtpd_recipient_restrictions',
make sure 'permit_mynetworks' is listed. It probably has to be in a
specific order to work properly. Here's what mine looks like:
smtpd_recipient_restrictions =
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
Hope that helps,
Alvin
p.s. - if that doesn't work, you will have to post the results of
'postconf -n' as Markus suggested.
More information about the ubuntu-users
mailing list