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.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st July 2011, 16: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
  #2  
Old 1st August 2011, 09:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

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

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

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
  #4  
Old 3rd August 2011, 15:11
counterpoint counterpoint is offline
Junior Member
 
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts
 
Default

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


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


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