#1  
Old 30th August 2006, 12:36
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default smtp auth, refuses password

I've gone back to basics and resinstalled using the debian 3.1 guide. i've followed the postfix part to the letter and am now trying to send an email using smtp in thunderbird.

i added a system user, set the password then set the thunderbird smtp user name as the same.

it then asks for my password word and i enter it but it is rejected and asks for the password again.

i want to test the user/password using telnet in the system but I don't know how to accomplish this.

Am i using the right username/password (i.e. i just used adduser to create an account in root)?

/etc/postfix/sasl/smtpd.conf reads

pwcheck_method: saslauthd
mech_list: plain login

i'm getting really confused with all this and searching google only seems to make things worse as everyone has different methods to do it.
Reply With Quote
Sponsored Links
  #2  
Old 30th August 2006, 16:42
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

trying to find this
Code:
auth method in /etc/sysconfig/saslauthd:

SASLAUTHD_AUTHMECH = shadow

(this was set to PAM before)
as described in this thread http://howtoforge.com/forums/showthread.php?t=6524

but i dont have that directory or file.
Reply With Quote
  #3  
Old 31st August 2006, 15:57
jjw jjw is offline
Member
 
Join Date: Aug 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What happens when you do find / -name saslauthd It might be in a different place.

My output:
Code:
# find / -name saslauthd
/usr/sbin/saslauthd
/etc/log.d/scripts/services/saslauthd
/etc/sysconfig/saslauthd
/etc/rc.d/init.d/saslauthd
/var/run/saslauthd
It might be residing in /etc/default. I read at least one recipe where the file was to be there.

jjw
Reply With Quote
  #4  
Old 31st August 2006, 19:59
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i changed /etc/default/saslauthd mechanisms variable to "sasldb" and used the saslpasswd2 program to add a user. this authenticated just fine.

the problem now is that this is not compatible with VHCS2 and the authentication has since disappeared and I am back to square one.
Reply With Quote
  #5  
Old 1st September 2006, 17:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by adam
i changed /etc/default/saslauthd mechanisms variable to "sasldb" and used the saslpasswd2 program to add a user. this authenticated just fine.
Change it back. Then post your /etc/postfix/main.cf (please strip out the comments).
__________________
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
  #6  
Old 1st September 2006, 17:42
adam adam is offline
Member
 
Join Date: Aug 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok after a lot of fiddling about I am starting to get somewhere....

I have managed to authenticate my smtp for vhcs accounts by changing /etc/default/saslauthd to

Code:
MECHANISMS="rimap -O 127.0.0.1"
This then allowed me to send mail using the email address as defined in my VHCS account.

HOwever, I have a paid for account with postmaster.co.uk and require my own smtp server to send email,but i couldnt use my smtp server to send from it because the user wouldnt authenticate with the email address i was sending from. I kind of fixed this by adding the ip of my ISP into main.cf but this is not a good solution becuase I cannot use my smtp from any other ip range.

Code:
mynetworks = 8x.2xx.xxx.0/24, 127.0.0.0/8
and this allowed me to send email from the ip address of my isp using my smtp account.

Ideally I would like to be able to create an authenticated SMTP user that has nothing todo with VHCS. I managed this before by adding a user to the sasldb2 file but this stopped working when i installed VHCS.

I am totally unsure why that IMAP thing in the mechanisms worked. Maybe someone can explain that to me. To be honest, i wasnt even going to bother testing it because I didnt think i was using imap in the first place.


main.cf
Code:
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

inet_interfaces = all
#mynetworks_style = host
mynetworks = 8x.2xx.xxx.0/24, 127.0.0.0/8
myhostname = viking
mydomain = viking.local
myorigin = $mydomain

smtpd_banner = $myhostname VHCS2 2.4 Spartacus Managed ESMTP 2.4.6.2
setgid_group = postdrop

mydestination = $myhostname, $mydomain
append_dot_mydomain = no
append_at_myorigin = yes
local_transport = local
virtual_transport = virtual
transport_maps = hash:/etc/postfix/vhcs2/transport

mail_spool_directory = /var/mail
mailbox_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"

biff = no

alias_database = hash:/etc/aliases

local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database

irtual_mailbox_base = /var/mail/virtual
virtual_mailbox_limit = 0

virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains
virtual_mailbox_maps = hash:/etc/postfix/vhcs2/mailboxes

virtual_alias_maps = hash:/etc/postfix/vhcs2/aliases


virtual_minimum_uid = 1002
virtual_uid_maps = static:1002
virtual_gid_maps = static:8

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

smtpd_sasl_local_domain = vhcs.net

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   reject_unauth_destination
If anyone can now show me how to setup a proper SMTP user that doesnt require VHCS but will still validate my VHCS email accounts I would be very happy.
Reply With Quote
  #7  
Old 2nd September 2006, 17:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Replace
Code:
smtpd_sasl_local_domain = vhcs.net
with
Code:
smtpd_sasl_local_domain =
and restart Postfix.
__________________
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

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
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
deb 3.1 smtp auth with vhcs2 adam HOWTO-Related Questions 9 31st August 2006 23:52
SMTP Auth doesnt work maxx Installation/Configuration 5 29th June 2006 22:51
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40
SMTP Auth problem maxx General 12 1st February 2006 02:48


All times are GMT +2. The time now is 17:21.


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