View Single Post
Old 13th December 2011, 19:35
Bushytea Bushytea is offline
Junior Member
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Send Mail from Smart Phone or Outlook


I am running a server with Centos 5.2, Postfix 2.3.3 and Dovecot. The server is not on my local network so it is not behind my router.

I can send mail to/from the email account on the server. (Ex: Send mail from server account to aol account then send mail from aol account back to server account)

I can even see the mail that is in the users mailbox from my phone but I am not able to send. When I try to setup the account in Outlook or try to send mail from my phone they both say they are unable to connect to the smtp server. When I test the settings in Outlook it says that it logs in successfully but cannot connect to the smtp server.I have searched and found tons of how-tos but just can not get it to work.

Here are a few different results I get when I telnet 25 and try to send an email.

Of Course the way I did it below does not work. I do receive the "Relay access denied" message.

# telnet 25
Trying IP...
Connected to (IP).
Escape character is '^]'.
220 ESMTP Postfix
250-SIZE 10240000
250 DSN
mail from:
250 2.1.0 Ok
rcpt to:
554 5.7.1 <>: Relay access denied
Here is what I see in /var/log/maillog:

Dec 13 11:25:31 postfix/smtpd[31014]: warning: IP: address not listed for hostname
Dec 13 11:25:31 postfix/smtpd[31014]: connect from unknown[IP]
Dec 13 11:25:47 postfix/smtpd[31014]: NOQUEUE: reject: RCPT from unknown[IP]: 554 5.7.1 <>: Relay access denied; from=<> to=<> proto=ESMTP helo=<>
Dec 13 11:25:50 postfix/smtpd[31014]: disconnect from unknown[IP]

Here is part of my from posfix:

myhostname =
mydomain =
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks =
alias_maps = hash:/etc/aliases
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_invalid_hostname reject_non_fqdn_hostname reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_sender_domain reject_unknown_recipient_domain reject_rbl_client permit
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_delay_reject = no

# SASL Authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
Then here is my dovecot.conf

protocols = imap pop3
listen = *
disable_plaintext_auth = no
pop3_uidl_format = %08Xu%08Xv
mechanisms = plain login
passdb pam {
args = /etc/pam.d/dovecot

client {
path = /var/run/dovecot/auth-client
mode = 0660
user = postfix
group = postfix
Thanks in advance
Reply With Quote
Sponsored Links