smtp - Linux postfix/dovecot 554 Relay access denied -


i have error 554 relay access denied when trying send email outlook client.

i can read incoming mails cannot send.

if connect telnet localhost 25 can send external emails, outlook client doesn't work.

here's postfix , dovecot config :

postconf -n

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = mailbox_size_limit = 0 mydestination = localhost myhostname = mail.mydomain.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtpd_banner = $myhostname esmtp $mail_name (ubuntu) smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem smtpd_tls_key_file = /etc/ssl/private/dovecot.pem smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = lmtp:unix:private/dovecot-lmtp 

doveconf -n

# 2.1.7: /etc/dovecot/dovecot.conf # os: linux 3.9.3-x86_64-linode33 x86_64 ubuntu 13.04 ext3 auth_mechanisms = plain login mail_location = maildir:/var/mail/vhosts/%d/%n mail_privileged_group = mail namespace inbox {   inbox = yes   location =    mailbox drafts {     special_use = \drafts   }   mailbox junk {     special_use = \junk   }   mailbox sent {     special_use = \sent   }   mailbox "sent messages" {     special_use = \sent   }   mailbox trash {     special_use = \trash   }   prefix =  } passdb {   args = /etc/dovecot/dovecot-sql.conf.ext   driver = sql } passdb {   args = /etc/dovecot/dovecot-sql.conf.ext   driver = sql } protocols = imap pop3 lmtp service auth-worker {   user = vmail } service auth {   unix_listener /var/spool/postfix/private/auth {     group = postfix     mode = 0666     user = postfix   }   unix_listener auth-userdb {     mode = 0600     user = vmail   }   user = dovecot } service imap-login {   inet_listener imap {     port = 0   } } service lmtp {   unix_listener /var/spool/postfix/private/dovecot-lmtp {     group = postfix     mode = 0600     user = postfix   } } service pop3-login {   inet_listener pop3 {     port = 0   } } ssl = required ssl_cert = </etc/dovecot/dovecot.pem ssl_key = </etc/dovecot/private/dovecot.pem userdb {   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n   driver = static } userdb {   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n   driver = static } 

any thoughts?

if use postfix version newer 2.10, need add smtpd_relay_restrictions option described here:

 # postfix 2.10 , later, mail relay policy # preferably specified under smtpd_relay_restrictions. /etc/postfix/main.cf:     smtpd_relay_restrictions =     permit_mynetworks     permit_sasl_authenticated     reject_unauth_destination  # older configurations combine relay control , spam control under # smtpd_recipient_restrictions. use example postfix ≥ # 2.10 specify "smtpd_relay_restrictions=". /etc/postfix/main.cf:     smtpd_recipient_restrictions =     permit_mynetworks     permit_sasl_authenticated     reject_unauth_destination         ...other rules... 

after that, sasl authenticated user should able send mails through server using smtp.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -