Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 31st July 2011, 17:45
counterpoint counterpoint is offline
Junior Member
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts
Default Postfix user/password validation

Following various "how to" articles here and elsewhere, I've been building a mail server. The information about domains and users is held in MySQL. Courier uses the user and password information to handle logins.

However, I cannot figure out how to deal with Postfix user/password validation. When a mail client is configured to use an SMTP server to relay, it is nowadays normal to enter a username and password. But my server is rejecting passwords.

This isn't altogether surprising since none of the Postfix related .cf files I've seen has any mention of passwords.

Am I on the wrong track? What needs to be done to configure the server to accept user names and passwords and to permit relaying to users who provide valid credentials?
Reply With Quote
Sponsored Links
Old 1st August 2011, 10:49
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

What tutorial (URL) did you use to set up the server?

Are there any errors in your mail log?
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
Old 1st August 2011, 18:03
counterpoint counterpoint is offline
Junior Member
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts

Creation of the basic system used my own standard procedures for working with a XEN VPS that has Debian Squeeze installed from an image provided by the host. Then the procedures in http://www.howtoforge.com/perfect-se...ze-ispconfig-2 were largely followed. DNS was not installed because not required, likewise proftpd and webalizer. Quota was not installed because not currently required. NTP sync not installed because it does not work correctly in a XEN VPS. MySQL was installed using my own standard procedures. Postfix and Courier were installed precisely following the "how to". Apache etc installed exactly in accordance with the "how to".

Then ViMbAdmin was installed from subversion (https://code.google.com/p/vimbadmin/...singSubversion) to provide a user friendly admin interface for mail (ISPconfig would be overkill for the application). This has limited documentation and refers to Postfix Admin for the integration of the database tables with the mail software. So I used http://sourceforge.net/apps/mediawik..._configuration for guidance and then turned to http://www.howtoforge.com/virtual-us...debian-squeeze but adapted the instructions for the table and field names used in ViMbAdmin.

After an attempt to send mail using the server as the relay, and giving a user name and password that are in the database, the mail log shows:

Aug 1 15:59:01 mail postfix/smtpd[24139]: warning: SASL authentication failure: Password verification failed
Aug 1 15:59:01 mail postfix/smtpd[24139]: warning: host217-?-?-?.in-addr.btopenworld.com[217.?.?.?]: SASL PLAIN authentication failed: authentication failure
Aug 1 15:59:03 mail postfix/smtpd[24139]: warning: host217-?-?-?.in-addr.btopenworld.com[217.?.?.?]: SASL LOGIN authentication failed: authentication failure

(IP address details removed for security)
Reply With Quote
Old 3rd August 2011, 16:11
counterpoint counterpoint is offline
Junior Member
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts

Well, I got this part of my mail server working in the end.

What wasn't at all clear to me when the question was raised was that it is possible to have Postfix use Courier to carry out authorisation via SASL. This takes some fairly tricky configuration. This seems the neatest way to build a SQL based system where both Postfix and Courier are in use.

I'd probably still be stuck without the helpful post at http://www.brandonchecketts.com/arch...ourier-authlib
Reply With Quote
The Following User Says Thank You to counterpoint For This Useful Post:
falko (4th August 2011)


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
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 14:29
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36

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

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