HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   smtp postfix and PAM+mysql doesn't work (http://www.howtoforge.com/forums/showthread.php?t=31361)

Enrikoala 15th February 2009 19:20

smtp postfix and PAM+mysql doesn't work
 
Hi to all again, I've installed also an email server reading "PostfixCompleteVirtualMailSystemHowTo" on help.ubuntu.com, using PAM and Mysql authentication.
The POP3 server works great and I'm very proud of this two-weeks-kick-self-work :-) but the SMTP makes me creazy.
Is there any Linux-guru could help me? Thanks! :-) Enrico

falko 16th February 2009 18:04

Any errors in your mail log? What's in your main.cf?

Enrikoala 17th February 2009 23:03

Quote:

Originally Posted by falko (Post 169807)
Any errors in your mail log? What's in your main.cf?

The log says:
Feb 17 09:49:03 mywebsite postfix/smtpd[17266]: connect from unknown[5.237.x.x]
Feb 17 09:49:03 mywebsite postfix/smtpd[17266]: warning: unknown[5.237.x.x]: SASL LOGIN authentication failed: authentication failure
Feb 17 09:49:03 mywebsite postfix/smtpd[17266]: disconnect from unknown[5.237.x.x]

..and here you have the main.cf:

smtpd_banner = $myhostname ESMTP $mail_name (NEXT Server)
biff = no
append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = mywebsite.it
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.mywebsite.it, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
html_directory = /usr/share/doc/postfix/html
mynetworks_style = host
delay_warning_time = 4h
unknown_local_recipient_reject_code = 450
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
smtp_helo_timeout = 60s
smtpd_recipient_limit = 16
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 12
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_transport = virtual
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "User has mailbox full."
virtual_overquota_bounce = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, p$
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
virtual_alias_domains =
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_reci$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

Thanks anyway for interesting.. :-)

Enrico

falko 18th February 2009 20:44

Are you using the correct username? Should be an email address.

Enrikoala 18th February 2009 22:27

If the POP3 works I think I use the correct username. Yes, it's my mail name.surname@mydomain.it. I'm becoming creazy cause that smtp!!! :-(

falko 19th February 2009 20:28

I think I'd try this tutorial: http://www.howtoforge.com/virtual-us...ail-ubuntu8.10 (at least it's working for me ;))


All times are GMT +2. The time now is 08:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.