Question

Postfix SMTP on Ubuntu 9.04

Asked by: sheshes

I am setting up an Ubuntu 9.04 Server for mail and web. So far I have managed to install postfix and postfixadmin, courier imap and squirrelmail. I can login fine using mysql tables and all the test are succesful on the imap.

i can only send mail with "mail" application internally to my users but not send any mails through squirrelmail.

Now, i am trying to set up the postfix smtp using sasl, tls and mysql. When I run testsaslauthd with valid credentials I get a NO "authentication failed" message. In /var/log/mail.err I get the error postfix/smtpd[5381] fatal: need service transport:endpoint.

I really can't figure it out. Please let me know if you need me to provide you with any logs or system output.

Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-26 at 12:05:13ID24439205
Topics

Postfix

,

Email Servers

,

Linux

Participating Experts
1
Points
500
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. ubuntu smtp server with domain auth
    I would like to setup an smtp server on my ubuntu server (8.04) which allows people to send mail by comparing the senders domain to a list in a mysql database. So no username/password, just domain authentication. I have looked through postfix but could not find such option. a...
  2. postfix as an smtp server
    I am trying to setup postfix (or any other suggestions) as an smtp server for the network. I am trying to set it up without authentication and to limit it to computers on our internal network of 10.1.1.x If you need me to post config files just let me know which ones and il...
  3. Postfix mail server
    I want to configure postfix for production in ubuntu server 9.10 with out using mysql with postfix. Is there any step by step guide available for postfix to full fill my requirement. My requirement postfix mailing list virtual user virtual domain webmail spamassassin clamav...
  4. EHCP, UBUNTU and POSTFIX
    Is there a MAIL expert out there that can help me? I had mail working with EHCP. WHen EHCP was installed it configured mail and it seemed to work. I made some changes and poof it quit working. I do not remember the changes and I have uninstalled and reinstalled both postfix ...
  5. smtp server in ubuntu
    Hello, - Ubuntu installed I'm trying to test the php function mail with this simple code: <?php mail("<email>","Testing Mail Function","This is a test message to test the mailing capabilities"); ?> In the apache log I'm getting th...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: NerdsOfTechPosted on 2009-05-27 at 04:00:08ID: 24481616

ACTUALLY use this it is much better!

http://flurdy.com/docs/postfix/

 

by: sheshesPosted on 2009-05-27 at 12:29:52ID: 24486596

Thanks for you help. I will try them tonight. I hope it works. Otherwise I will post a detailed analysis of my problem

 

by: NerdsOfTechPosted on 2009-05-27 at 12:32:13ID: 24486623

Sounds like a plan!

 

by: sheshesPosted on 2009-05-27 at 12:38:46ID: 24486691

:) It is! I just drove 5 hours to pickup my server cabinet, exhausted!

 

by: NerdsOfTechPosted on 2009-05-28 at 00:47:38ID: 24490488

Next time install a VNC remote admin! WOW! :)

 

by: sheshesPosted on 2009-05-28 at 03:49:35ID: 24491534

I have disabled tls and sasl from postfix config and modifies the main.cf to the parameters listed in http://flurdy.com/docs/postfix/. Still nothing, I try to connect throught telnet but never get the banner.

How can I complete remove sasl, tls and postfix so I can do a clean installation from the beginning? (just apt-get remove package?).

Since Courier Imap is working against the mysql tables would deleting postfix make the imap inaccessible and mess the current configuration?

 

by: NerdsOfTechPosted on 2009-05-29 at 13:28:12ID: 24505929

reformat drive
reinstall your os
reconfigure your package

You can tryout xxamp if this is going to be a server:
http://www.apachefriends.org/en/xampp-linux.html

Best of luck.

P.S.
install a remote desktop for your linux too if it is that far. That way you could telnet or desktop connect.

http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software

 

by: sheshesPosted on 2009-05-29 at 18:20:27ID: 24507299

Thanks for the help. I think you got thing a bit wrong. I drove far to pickup a Server cabinet. I have physical access to both of my HP Proliants.

So far I managed to get courier imap to login using mysql tables and also confiured squirrelmail to login.

My problem is with smtp. I am trying to configure postfix smtp with sasl and tls. I pretty much do all the necessary configuration only to keep getting an error in /var/log/autd.log that sql_select option missing auxpropfunc error no mechanism available.

I think I might have messed up eveything badly will trying to solve other problems. I am going to start a clean installation and try setting up everything.

Since i am doing the whole thing again, I just want to ask your opinion on which apps to use for the mail server. I want to manage multiple fqdn domains setup as virtual domains on 1 server. I decided to use Postfix Courier-Imap Sasl, TLS, Mysql and Squirrelmail.

Am I missing out anything here? I just need a secure authentication for my users but I couldn't figure out sasl and tls.

Please advise

 

by: NerdsOfTechPosted on 2009-05-30 at 00:56:43ID: 24508179

# apt-get remove libsasl2-modules-sql

 

by: NerdsOfTechPosted on 2009-05-30 at 00:57:38ID: 24508182

rpm command

 

by: NerdsOfTechPosted on 2009-05-30 at 00:58:14ID: 24508185

rpm command

# apt-get remove libsasl2-modules-sql

                                              
1:

Select allOpen in new window

 

by: sheshesPosted on 2009-05-30 at 03:26:33ID: 24508520

if I remove that, will sasl be able to authenticate using the mysql tables?

 

by: sheshesPosted on 2009-05-30 at 03:26:53ID: 24508521

Btw I am running Ubuntu 9.04 server

 

by: NerdsOfTechPosted on 2009-05-30 at 03:58:31ID: 24508569

http://archives.neohapsis.com/archives/postfix/2006-06/0088.html

It's nothing to worry about. The Cyrus SASL library libsasl tries to intialize
all plugins. The auxprop plugin sql requires some parameters to be intialized
and fails. This is what Cyrus SASL reports.

So there's nothing wrong with your setup. It is just Cyrus SASL being rather
strange in how it treats this "error".

You might take this to the Cyrus SASL list though, so they can get an idea how
annoying this "feature" is.

prick

P.S.
To get rid of the message remove the plugin from your Cyrus SASL plugin dir.


http://archives.neohapsis.com/archives/postfix/2006-12/0549.html

You have installed the Cyrus-SASL sql- and ldapdb-Plugins but you are not
using thm with Postfix. Either remove them, or satisfy the Plugins with the
Options they expect in smtpd.conf.

sql_select: dummy

 

by: NerdsOfTechPosted on 2009-05-30 at 04:00:01ID: 24508576

Yikes.. sorry I just copied and pasted the context from those links without looking at the language.

This should apply to your OS setup as well.

 

by: NerdsOfTechPosted on 2009-05-30 at 04:00:20ID: 24508578

Either remove them, or satisfy the Plugins with the
Options they expect in smtpd.conf.

                                              
1:
2:

Select allOpen in new window

 

by: sheshesPosted on 2009-05-30 at 15:53:27ID: 24510634

But I want SASL to use the mysql module so it can authenticate over the tables.

my smtpd.conf has

pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: postfix
sql_passwd: yourpassword
sql_database: postfix
sql_select: select password from mailbox where username='%u@%r' and active = 1

I am satisfying the sql_select but no luck. That's what I am trying to fix

 

by: NerdsOfTechPosted on 2009-05-30 at 16:13:04ID: 24510689

replace:
sql_select: select password from mailbox where username='%u@%r' and active = 1

with:
sql_select: dummy

temporarily and see if you get the error

 

by: sheshesPosted on 2009-05-31 at 07:20:38ID: 24512702

still the same

nano /var/log/auth.log
May 31 15:15:15 mail saslauthd[4977]: server_exit     : master exited: 4977
May 31 15:15:15 mail saslauthd[5470]: detach_tty      : master pid is: 5470
May 31 15:15:15 mail saslauthd[5470]: ipc_init        : listening on socket: /var/spool/postfix/var/run/saslauthd/mux
May 31 15:16:12 mail postfix/smtpd[5483]: sql_select option missing
May 31 15:16:12 mail postfix/smtpd[5483]: auxpropfunc error no mechanism available
May 31 15:16:12 mail postfix/smtpd[5483]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql

/var/log/mail.log
May 31 15:15:14 mail postfix/master[4878]: terminating on signal 15
May 31 15:15:15 mail postfix/master[5371]: daemon started -- version 2.5.5, configuration /etc/postfix
May 31 15:15:15 mail authdaemond: stopping authdaemond children
May 31 15:15:15 mail authdaemond: modules="authmysql", daemons=5
May 31 15:15:15 mail authdaemond: Installing libauthmysql
May 31 15:15:15 mail authdaemond: Installation complete: authmysql
May 31 15:16:03 mail imapd: Connection, ip=[::1]
May 31 15:16:03 mail imapd: LOGIN, user=xristos@sheshes-world.com, ip=[::1], port=[57344], protocol=IMAP
May 31 15:16:03 mail imapd: LOGOUT, user=*****@*********.com, ip=[::1], headers=0, body=0, rcvd=30, sent=238, time=0
May 31 15:16:03 mail imapd: Connection, ip=[::1]
May 31 15:16:03 mail imapd: LOGIN, user=*****@***********.com, ip=[::1], port=[57346], protocol=IMAP
May 31 15:16:03 mail imapd: LOGOUT, user=*****@******.com, ip=[::1], headers=0, body=0, rcvd=659, sent=2227, time=0
May 31 15:16:03 mail imapd: Connection, ip=[::1]
May 31 15:16:03 mail imapd: LOGIN, user=*****@************.com, ip=[::1], port=[57348], protocol=IMAP
May 31 15:16:03 mail imapd: LOGOUT, user=******@***********.com, ip=[::1], headers=575, body=0, rcvd=296, sent=2426, time=0
May 31 15:16:12 mail postfix/smtpd[5483]: warning: ::1: address not listed for hostname localhost
May 31 15:16:12 mail postfix/smtpd[5483]: connect from unknown[::1]
May 31 15:16:12 mail postfix/smtpd[5483]: warning: unknown[::1]: SASL LOGIN authentication failed: authentication failure
May 31 15:16:12 mail postfix/smtpd[5483]: lost connection after AUTH from unknown[::1]
May 31 15:16:12 mail postfix/smtpd[5483]: disconnect from unknown[::1]
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

Select allOpen in new window

 

by: NerdsOfTechPosted on 2009-05-31 at 15:31:08ID: 24514230

revert back to your previous sql and double check to see if you have permissions set correctly.

otherwise, remove the module temporarily

see if you get the same error

 

by: sheshesPosted on 2009-06-01 at 05:29:43ID: 24516773

I am going to close this question as I received a lot of help and redo the whole process again having in mind the things you spotted.

I will open a new one if the problems still persist.

Thanks again for your help

 

by: NerdsOfTechPosted on 2009-06-01 at 14:22:30ID: 24521995

Thanks. If you do post another question link it to this one (related question) and I will try to help.

=NerdsOfTech

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...