Postfix and Dovecot Help

Associate
Joined
20 Oct 2002
Posts
1,217
Location
Melbourne Australia
I've been playing around with these and made a working IMAP mail server that uses fetchmail, postfix, dovecot and procmail.

Everything works except sending a mail outside of the local domain using Thunderbird.

It works when I send it from the command line, but I get relay errors when attempting to send to the same external address from a mail client.

Do I really need to enable SASL authentication with TLS to be able to send outside of the local domain or is there another way around it?

Thanks.
 
You don't need SASL or TLS, I just use clear text/no auth as I only send mail from the LAN. If it lets you send it from the command line then I cant see why the client won't let you.. What error comes back? Checked the postfix logs?
 
You don't need SASL or TLS, I just use clear text/no auth as I only send mail from the LAN. If it lets you send it from the command line then I cant see why the client won't let you.. What error comes back? Checked the postfix logs?

It's at work and I'm at home, but I'll post back in about 10hrs or so with the error message.

Thanks.
 
Definately works from the command line. Tried a few different users and each can send mails externally via a relay provided by our ISP and report the correct mail address from the sender.
When I try the same from a mail client (Thunderbird), I get the following error;

An error occured while sending the mail. The server responded: 5.7.1
<user@domainname>: Relay access denied. Please check the message recipients and try again.
 
Cracked it.

Needed to add the domain subnet entry to the "mynetworks" option in the postfix main.cf file. By default it was only set to 172.0.0.0/8 which is why it was working from the command line and nowhere else.
 
Back
Top Bottom