Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th February 2009, 19:20
Enrikoala Enrikoala is offline
Junior Member
 
Join Date: Feb 2009
Location: Genova
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 16th February 2009, 18:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Any errors in your mail log? What's in your main.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th February 2009, 23:03
Enrikoala Enrikoala is offline
Junior Member
 
Join Date: Feb 2009
Location: Genova
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
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
Reply With Quote
  #4  
Old 18th February 2009, 20:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Are you using the correct username? Should be an email address.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 18th February 2009, 22:27
Enrikoala Enrikoala is offline
Junior Member
 
Join Date: Feb 2009
Location: Genova
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!!! :-(
Reply With Quote
  #6  
Old 19th February 2009, 20:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I think I'd try this tutorial: http://www.howtoforge.com/virtual-us...ail-ubuntu8.10 (at least it's working for me )
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
mysql, pam, postfix, smtp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix smtp authentication; permission to relay leblanc Installation/Configuration 5 3rd December 2007 20:13
postfix, sasl2 e mysql in debian etch matulio Server Operation 8 15th August 2007 19:05
virtual mail boxes setup satimis Server Operation 3 25th January 2007 18:32
Upgrade question for "Virtual Users And Domains With Postfix, Courier And MySQL" emresumengen HOWTO-Related Questions 3 1st December 2006 15:33
Please help me with this issue!! jarrell General 41 7th September 2006 10:18


All times are GMT +2. The time now is 06:40.


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