Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st August 2005, 13:40
maxx maxx is offline
Member
 
Join Date: Jul 2005
Location: Finland
Posts: 70
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to maxx Send a message via Skype™ to maxx
Default SMTP Auth problem

Hi again

Now I have SMTP auth problem. When I try to send mail via my own mail server. And put require auth for smtp it doesn't accept my password on thunderbird it's just keep asking it again and again, and it doesnt send my mail.

Im using Suse 9.3 and did perfect setup.

- Maxx
Reply With Quote
Sponsored Links
  #2  
Old 1st August 2005, 14:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Did you specify a user name and a password in Thunderbird under Tools -> Account Settings -> Outgonig Server (SMTP)?

What does your maillog say?
__________________
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 1st August 2005, 14:22
maxx maxx is offline
Member
 
Join Date: Jul 2005
Location: Finland
Posts: 70
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to maxx Send a message via Skype™ to maxx
Default

Quote:
Originally Posted by falko
Did you specify a user name and a password in Thunderbird under Tools -> Account Settings -> Outgonig Server (SMTP)?

What does your maillog say?
Yes I did specify username and password for outgoing mail SMTP.

Here is error log:

Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: SASL authentication failure: Password verification failed
Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: unknown[195.197.240.40]: SASL PLAIN authentication failed
Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: unknown[195.197.240.40]: SASL LOGIN authentication failed
Reply With Quote
  #4  
Old 1st August 2005, 14:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by maxx
Yes I did specify username and password for outgoing mail SMTP.

Here is error log:

Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: SASL authentication failure: Password verification failed
Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: unknown[195.197.240.40]: SASL PLAIN authentication failed
Aug 1 14:32:32 fusion postfix/smtpd[15791]: warning: unknown[195.197.240.40]: SASL LOGIN authentication failed
And you're sure you provided the right username (webxx_..., not the email address) and password?
Is saslauthd running on your SuSE system?
__________________
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 1st August 2005, 14:43
maxx maxx is offline
Member
 
Join Date: Jul 2005
Location: Finland
Posts: 70
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to maxx Send a message via Skype™ to maxx
Default

Quote:
Originally Posted by falko
And you're sure you provided the right username (webxx_..., not the email address) and password?
Is saslauthd running on your SuSE system?
Im 100% precent sure that im using name username and password for sending and receiving mail.

saslauthd is running.

(I tested without any username and password and did manage to send email, under same network)

Actually there is another problem too that i found in mailog:

Aug 1 15:24:07 fusion imapd: Failed to create cache file: maildirwatch (web1_joakim)
Aug 1 15:24:07 fusion imapd: Error: Input/output error

This has something to do with FAM, fam service is running btw.

- Maxx

Last edited by maxx; 1st August 2005 at 14:53.
Reply With Quote
  #6  
Old 1st August 2005, 15:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by maxx
Im 100% precent sure that im using name username and password for sending and receiving mail.
Can you check if the user in question has entries in /etc/passwd and /etc/shadow?
__________________
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
  #7  
Old 1st August 2005, 15:10
maxx maxx is offline
Member
 
Join Date: Jul 2005
Location: Finland
Posts: 70
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to maxx Send a message via Skype™ to maxx
Default

Quote:
Originally Posted by falko
Can you check if the user in question has entries in /etc/passwd and /etc/shadow?
Yes they appear there.
Reply With Quote
  #8  
Old 1st August 2005, 15:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Does /etc/postfix/main.cf contain lines similar to these:

Code:
postconf -e 'mydomain = example.com'
postconf -e 'myhostname = server1.$mydomain'
postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains'
postconf -e 'inet_interfaces = all'
postconf -e 'alias_maps = hash:/etc/aliases'
You should have an smtpd.conf somewhere on your system (run
Code:
updatedb
locate smtpd.conf
to find out) with the following contents:
Code:
pwcheck_method: saslauthd
mech_list: plain login
__________________
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
  #9  
Old 3rd August 2005, 11:37
maxx maxx is offline
Member
 
Join Date: Jul 2005
Location: Finland
Posts: 70
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to maxx Send a message via Skype™ to maxx
Default I installed everything again.

Quote:
Originally Posted by falko
Does /etc/postfix/main.cf contain lines similar to these:

Code:
postconf -e 'mydomain = example.com'
postconf -e 'myhostname = server1.$mydomain'
postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains'
postconf -e 'inet_interfaces = all'
postconf -e 'alias_maps = hash:/etc/aliases'
You should have an smtpd.conf somewhere on your system (run
Code:
updatedb
locate smtpd.conf
to find out) with the following contents:
Code:
pwcheck_method: saslauthd
mech_list: plain login

SMTP auth still not working (same problem, doent accept password, keeps asking it again and again). I installed everything again and still the same problem! This is getting weird.

And I have this problem too (from mail log):

Aug 3 01:13:21 fusion imapd-ssl: Failed to create cache file: maildirwatch (web1_joakim)
Aug 3 01:13:21 fusion imapd-ssl: Error: Input/output error
Aug 3 01:13:21 fusion imapd-ssl: Check for proper operation and configuration
Aug 3 01:13:21 fusion imapd-ssl: of the File Access Monitor daemon (famd).



BTW: few fixes to perfect suse 9.3

1. If you install latest updates including latest kernel right after you have installed SuSe you have to do restart to your computer otherwise you get error while making quota at command quotaon -avug (something like kernel not supporting)

2. Installing Proftpd do "make clean" and then "make install". Otherwise you could get errors. (time hasling)
Reply With Quote
  #10  
Old 6th August 2005, 12:11
Kronos Kronos is offline
Junior Member
 
Join Date: Aug 2005
Location: Germany
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi,

I had a smiliar problem after following Falko's (excellent) guide. Got it to work after changing the auth method in /etc/sysconfig/saslauthd:

SASLAUTHD_AUTHMECH = shadow

(this was set to PAM before)

Since the change everything works perfectly. You can verify your user/pass with 'testsaslauthd -u user -p passwd'
I think this should also work with PAM, but then you have to provide an appropriate conf in /etc/pam.d for smtp (PAM ist the Suse standard for authentication)

Good luck!

Last edited by Kronos; 6th August 2005 at 12:18.
Reply With Quote
Reply

Bookmarks

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


All times are GMT +2. The time now is 18:09.


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