Hi,

I have a problem with my mailserver.

I am using Postfix as MTA, Courier Imap Server and smtpd with Sasl.

I can send Mails without any problems using Thunderbird or Squirrelmail
running on my Server. When I try to send an Email using an Android
Mailclient it fails. Neither the standard client nor K9 works.

The verbose log of smtp says the following:

Thunderbird:
Dec  6 12:55:12 lvps83-169-45-131 postfix/smtpd[7809]: <
00216abb755a.dfn.mwn.de[138.246.44.24]: AUTH PLAIN *******
6834 Dec  6 12:55:12 lvps83-169-45-131 postfix/smtpd[7809]:
xsasl_cyrus_server_first: sasl_method PLAIN, init_response *******
6835 Dec  6 12:55:12 lvps83-169-45-131 postfix/smtpd[7809]:
xsasl_cyrus_server_first: decoded initial response
6836 Dec  6 12:55:12 lvps83-169-45-131 postfix/smtpd[7809]: >
00216abb755a.dfn.mwn.de[138.246.44.24]: 235 2.7.0 Authentication successful

Android:
Dec  6 12:51:29 lvps83-169-45-131 postfix/smtpd[30077]: <
unknown[89.204.137.99]: AUTH PLAIN ****
6518 Dec  6 12:51:29 lvps83-169-45-131 postfix/smtpd[30077]:
xsasl_cyrus_server_first: sasl_method PLAIN, init_response ****
6519 Dec  6 12:51:29 lvps83-169-45-131 postfix/smtpd[30077]:
xsasl_cyrus_server_first: decoded initial response
6520 Dec  6 12:51:30 lvps83-169-45-131 postfix/smtpd[30077]: warning:
SASL authentication failure: Password verification failed
6521 Dec  6 12:51:30 lvps83-169-45-131 postfix/smtpd[30077]: warning:
unknown[89.204.137.99]: SASL PLAIN authentication failed: authentication
failure

For some reason the Auth keys are not the same. The keys start with the
same chars, but in the end the chars differ.

My Settings:

/etc/postfix/main.cf:
 20 # TLS parameters
 21 smtpd_tls_security_level = may
 22 smtp_tls_security_level = may
 23 smtp_tls_note_starttls_offer = yes
 24 smtpd_tls_loglevel = 1
 25 smtpd_tls_received_header = yes
 26 smtpd_tls_session_cache_timeout = 3600s
 27 smtpd_random_source = dev:/dev/urandom
 28 smtpd_tls_cert_file=/etc/ssl/certs/phynformatik.de.pem
 29 smtpd_tls_key_file=/etc/ssl/private/phynformatik.de.key

 53 smtpd_helo_restrictions = permit_mynetworks, warn_if_reject,
reject_non_fqdn_hostname, reject_invalid_hostname, permit
 54 smtpd_sender_restrictions = permit_sasl_authenticated,
permit_mynetworks, warn_if_reject, reject_non_fqdn_sender,
reject_unknown_sender_domain, reject_unauth_pipelining, permit
 55 smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org,
reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org
 56 smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_pipelining, reject_non_fqdn_recipient,
reject_unknown_recipient_domain, reject_unauth_destination,
check_policy_service inet:127.0.0.1:10023, permit
 57 smtpd_data_restrictions = reject_unauth_pipelining
 58 smtpd_helo_required = yes
 59 smtpd_delay_reject = yes
 60 disable_vrfy_command = yes

 72 smtpd_sasl_auth_enable = yes
 73 broken_sasl_auth_clients = yes
 74 smtpd_sasl_security_options = noanonymous
 75 smtpd_sasl_local_domain =

/etc/postfix/sasl/smtp.conf
  1 pwcheck_method: auxprop
  2 mech_list: plain login cram-md5 digest-md5
  3 log_level: 7
  4 allow_plaintext: true
  5 auxprop_plugin: sql
  6 sql_engine: mysql
  7 sql_hostnames: 127.0.0.1
  8 sql_user: mail
  9 sql_passwd: password
 10 sql_database: maildb
 11 sql_select: select clear from users where id='%...@%r' and enabled = 1


Any hints, why I can’t send mails from my Android phone would be great.

Janosch
-- 
Janosch Maier <[email protected]> -- http://phynformatik.de
This E-Mais is signed via GnuPG <http://gnupg.org/>. My public key:
0xEB21B1DE

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to