LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2009, 08:22 AM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
can't get postfix working with smtp auth


Hi all,

I'd like to configure my postfix mailserver (running under FreeBSD v7.0) to relay outgoing email to an external mailserver for final delivery.

I found this page with the Google: SMTP Authentication for Mail servers
Quote:
SMTP AUTH for mail server is a feature that is often required to relay mail through other mail servers. To enable SMTP AUTH for Postfix, acting as mail client in this scenario, you need to do the following steps:
The instructions appear straightforward: creating the saslpasswd file, and adding these lines to main.cf:
Code:
# SASL SUPPORT FOR SERVERS
#
# The following options set parameters needed by Postfix to enable
# Cyrus-SASL support for authentication of mail servers.
#
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpass
smtp_sasl_security_options =
Then I restarted postfix.

Postfix reloads OK, but when I try to send a mail I get an error message in maillog:
Code:
Sep 19 15:07:07 venus postfix/postfix-script[75167]: refreshing the Postfix mail system
Sep 19 15:07:07 venus postfix/master[94963]: reload -- version 2.6.5, configuration /usr/local/etc/postfix
Sep 19 15:07:19 venus postfix/smtpd[75183]: connect from ariel[192.168.1.2]
Sep 19 15:07:19 venus postfix/smtpd[75183]: 2ED055C1E: client=ariel[192.168.1.2]
Sep 19 15:07:19 venus postfix/cleanup[75187]: 2ED055C1E: message-id=<4AB4D790.2080908@example.com>
Sep 19 15:07:19 venus postfix/qmgr[75171]: 2ED055C1E: from=<me@example.com>, size=1047, nrcpt=1 (queue active)
Sep 19 15:07:19 venus postfix/smtp[75188]: warning: unsupported SASL client implementation: cyrus
Sep 19 15:07:19 venus postfix/smtp[75188]: fatal: SASL library initialization
Sep 19 15:07:19 venus postfix/smtpd[75183]: disconnect from ariel[192.168.1.2]
Sep 19 15:07:20 venus postfix/master[94963]: warning: process /usr/local/libexec/postfix/smtp pid 75188 exit status 1
Sep 19 15:07:20 venus postfix/master[94963]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling
Googling a bit, I find this command tells me, according to the man page, "List the available SASL client plug-in types."
Code:
# postconf -A
returns nothing alas, even though I explicitly ran make config and recompiled postfix explicitly with Cyrus support:

Code:
Options for postfix 2.6.5,1
                          │ 
[...]
[X] SASL2     Cyrus SASLv2 (Simple Auth. and Sec. Layer) 
[X] DOVECOT   Dovecot SASL authentication method
[...]
What am I missing here?

Thanks
 
Old 10-01-2009, 08:25 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
you probably need to specify the authentication domain, either by leaving it explicity blank or setting it:

smtpd_sasl_local_domain =
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix smtp-auth csdhiman Linux - Server 1 05-31-2007 08:21 PM
postfix with smtp auth cccc Debian 1 09-15-2006 07:47 PM
Postfix With SMTP-AUTH And TLS carlainz Linux - Software 0 05-21-2006 03:13 AM
postfix and smtp auth FragInHell Linux - Software 2 10-05-2005 06:23 AM
Postfix SMTP AUTH NetScripter Linux - Software 0 10-23-2002 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration