On 27/07/2012 11:10, James Day wrote:
-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
us...@postfix.org] On Behalf Of Dominique
Sent: 27 July 2012 09:57
To: Postfix User List
Subject: Outgoing mail problem from phone

Hi,

We have a simple postfix setup as part of a local mail server
(Postfix/Cyrus/Sieve) that works perfectly locally through TB, and remotely
through WebGUI (Roundcube).

However when trying to connect through a phone app (Android/email app),
there is no way to send a mail. It gets rejected all the time.

Jul 27 10:25:03 www postfix/smtpd[10868]: connect from 230.Red-176-83-
90.dynamicIP.rima-tde.net[176.83.90.230]
Jul 27 10:25:04 www postfix/smtpd[10868]: NOQUEUE: reject: RCPT from
230.Red-176-83-90.dynamicIP.rima-tde.net[176.83.90.230]: 554 5.7.1
<230.Red-176-83-90.dynamicIP.rima-tde.net[176.83.90.230]>: Client host
rejected: Access denied; from=<hraboga...@hrabogados.com>
to=<dco...@gmail.com>  proto=ESMTP helo=<[10.27.232.189]>  Jul 27
10:25:05 www postfix/smtpd[10868]: lost connection after RCPT from
230.Red-176-83-90.dynamicIP.rima-tde.net[176.83.90.230]
Jul 27 10:25:05 www postfix/smtpd[10868]: disconnect from 230.Red-176-83-
90.dynamicIP.rima-tde.net[176.83.90.230]

The message is not cryptic, I just don't know what to do to fix it...

Can someone help me out ? Let me know what info is needed.

Thanks,

Dominique

Please post the output of postconf -n

I cannot say for certain but I would imagine your problem is your configuration 
of smtpd_recipient_restrictions, you'll need to add something like 
permit_sasl_authenticated prior to your reject statement.

However this is all speculation without your configuration details.

Kind regards,

James Day
(IT Engineer)




Hi James, Robert,

Here is the output of postconf -n.

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = all
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
message_size_limit = 20480000
mydestination = mail.hrabogados.com,hra-srv-2.hrabogados.com,localhost.hrabogados.com,localhost
myhostname = mail.hrabogados.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 192.168.1.0/24
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = smtp.movistar.es
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
smtp_cname_overrides_servername = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access
smtpd_delay_reject = yes
smtpd_error_sleep_time = 15s
smtpd_hard_error_limit = 20
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, 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_unauth_pipelining reject_rbl_client bl.spamcop.net, reject_rbl_client zen.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org, reject_rbl_client dul.dnsbl.sorbs.net, check_policy_service unix:private/policyd-spf
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sender_restrictions = reject_non_fqdn_sender, check_sender_access hash:/etc/postfix/access, check_sender_mx_access hash:/etc/postfix/access
smtpd_soft_error_limit = 10
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-mydestination.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_transport = lmtp:unix:/var/run/cyrus/socket/lmtp

The phone smtp part is configured - I guess correctly.

Thanks for the help.

Dominique

Reply via email to