homepage Welcome to WebmasterWorld Guest from 54.211.235.255
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Postfix Will Receive but NOT Send Mail
problems with postfix not sending mail via mail clients
techy3482




msg:3920853
 12:09 pm on May 27, 2009 (gmt 0)


Hey All

I'm having problems with my Postfix setup - it will currently only send and receive through SquirrelMail but will only receive and NOT send via Outlook or other mail clients.

Every time I try to send I receive the following message:

Sending failed; Reason:554 5.7.1 : Relay access denied

My config is set up as follows:

myhostname = mail.mydomain#*$!.com
mynetworks_style = subnet
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mydomain#*$!.com, $myhostname, localhost.$mydomain, localhost, $mydomain
relayhost =
mydomain = mydomain#*$!.com
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit permit_inet_interfaces
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_alias_maps = hash:/etc/postfix/virtual
message_size_limit = 20480000
smtpd_sasl_security_options =
inet_interfaces = all
inet_protocols = all
smtpd_sasl_auth_enable = yes

And my log records the following:

May 27 12:06:05 mydomain#*$! postfix/smtpd[25959]: connect from sender1.othermail.com[72.5.230.103]
May 27 12:06:05 mydomain#*$! postfix/smtpd[25959]: NOQUEUE: reject: RCPT from sender1.othermail.com[72.5.230.103]: 554 5.7.1 <other@yahoo.com>: Relay access denied; from=<rich@mydomain#*$!.com> to=<other@yahoo.com> proto=ESMTP helo=<172.31.252.89>
May 27 12:06:06 mydomain#*$! postfix/smtpd[25959]: disconnect from sender1.othermail.com[72.5.230.103]

Any help would be greatly appreciated,

Rich

 

lammert




msg:3922941
 10:06 am on May 30, 2009 (gmt 0)

Sending failed; Reason:554 5.7.1 : Relay access denied

This tells the source of your problem. Postfix doesn't allow relaying of messages from the IP where your Outlook messages are coming from. The line which controls this is:

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination

In your config it accepts authenticated connections, connections from your networks and rejects everything else. The IP of your Outlook client is probably not present in $mynetworks. See the Postfix documentation [postfix.org] for some examples how you can add IP addresses.

Another option is to communicate with Outlook to Postfix over an authenticated connection, because you have permit_sasl_authenticated also switched on.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved