Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: Problems with postfix / SASL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Thu Mar 18, 2004 4:14 am    Post subject: SOLVED: Problems with postfix / SASL Reply with quote

Hi!

I've got two big problems.

The first is that all mail I should received is being rejected. I get the following error:
Code:
Mar 18 04:58:15 obelix postfix/smtpd[15291]: starting TLS engine
Mar 18 04:58:15 obelix postfix/smtpd[15291]: connect from axfr.key-systems.net[81.3.43.252]
Mar 18 04:58:16 obelix postfix/smtpd[15291]: 126395950: client=axfr.key-systems.net[81.3.43.252]
Mar 18 04:58:16 obelix postfix/smtpd[15291]: 126395950: reject: RCPT from axfr.key-systems.net[81.3.43.252]: 450 <crp@crparr.net>: User unknown in local recipient table; from=<afterward@cyberfreak.com> to=<crp@crparr.net> proto=SMTP helo=<axfr.key-systems.net>
Mar 18 04:58:17 obelix postfix/smtpd[15291]: disconnect from axfr.key-systems.net[81.3.43.252]

But the user crp@crparr.net exists in the users table.

What's wrong?

Second I can't login to postfix via sasl. I get the following error:
Code:
Mar 18 04:49:06 obelix saslauthd[15120]: Unknown column 'Password' in 'field list'
Mar 18 04:49:06 obelix saslauthd[15120]: Unknown column 'Password' in 'field list'
Mar 18 04:49:06 obelix saslauthd[15120]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
Mar 18 04:49:06 obelix saslauthd[15120]: do_auth         : auth failure: [user=crp] [service=smtp] [realm=crparr.net] [mech=pam] [reason=PAM auth error]
Mar 18 04:49:06 obelix postfix/smtpd[14826]: warning: SASL authentication failure: Password verification failed
Mar 18 04:49:06 obelix postfix/smtpd[14826]: warning: unknown[192.168.1.3]: SASL PLAIN authentication failed
Mar 18 04:49:07 obelix saslauthd[15121]: Unknown column 'Password' in 'field list'
Mar 18 04:49:07 obelix saslauthd[15121]: Unknown column 'Password' in 'field list'
Mar 18 04:49:07 obelix saslauthd[15121]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
Mar 18 04:49:07 obelix saslauthd[15121]: do_auth         : auth failure: [user=crp] [service=smtp] [realm=crparr.net] [mech=pam] [reason=PAM auth error]


What's wrong here?

Please help! It's urgent.

Thanks

PS:I'm not receiving any mail at the moment !!!!!
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.


Last edited by fosstux on Fri Mar 19, 2004 10:00 am; edited 1 time in total
Back to top
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Thu Mar 18, 2004 3:09 pm    Post subject: Reply with quote

you are using mysql with postfix, are you not? It seems that you didn't set the table up properly, try to go back and look for typos. remember, this is all case sensitive, some make sure to look for that as well.
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Thu Mar 18, 2004 6:37 pm    Post subject: Reply with quote

I've just now checked my config files. Everything seems to be ok. BUT I nevertheless cannot login to postfix. Courier is working fine!

I now get the following errors:
Code:
Mar 18 19:27:18 obelix saslauthd[1446]: Unknown column 'Password' in 'field list'
Mar 18 19:27:18 obelix saslauthd[1446]: DEBUG: auth_pam: pam_authenticate failed: Permission denied
Mar 18 19:27:18 obelix saslauthd[1446]: do_auth         : auth failure: [user=crp] [service=smtp] [realm=crparr.net] [mech=pam] [reason=PAM auth error]


What's permissions should be set for PAM?

EDIT: Somehow Postfix only uses the first part of my email adress to authenticate. But in my database I have the complete email adress.

Please help.
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Thu Mar 18, 2004 7:33 pm    Post subject: Reply with quote

not so much the config files, but the table definition in mysql
Quote:
Mar 18 19:27:18 obelix saslauthd[1446]: Unknown column 'Password' in 'field list'

means that it cant find that field in the database.
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Thu Mar 18, 2004 11:39 pm    Post subject: Reply with quote

Ok. So now the Error with the field password is fixed. I renamed the field clear to Password.

But: I have at the moment turned logging on at my mysql server. I discovered that Postfix tries to authenticate with sasl using only the part in front of the @ as adress.

Code:
WRONG: SELECT Password FROM users WHERE email='parta'
SHOULD BE: SELECT Password FROM users WHERE email='parta@partb.tld'


The authentification for courier is correct!

Please help. Thanks
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Fri Mar 19, 2004 12:35 am    Post subject: Reply with quote

I can now send mail. I solved this by adding another user, but entering only the part 1 of my email adress (befor the @).

But I still cannot fet the relay working.

Any Ideas?
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Fri Mar 19, 2004 9:59 am    Post subject: Reply with quote

Problem is solved. I discovered that I need to put something into the virtual table even for a local domain.
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum