LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2006, 04:25 PM   #1
aaf
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: Ubuntu & Debian
Posts: 12

Rep: Reputation: 0
Postfix smtp relay issue


Hi,

I've tried to follow this guide to set up both a smtp server and pop3 mailboxes for a few domains.

It seems to work except that I can't seem to send mail to external addresses. It seems to be that I should be able to, but something is a bit fishy.

I'd be delighted and very grateful if anybody could help.

This is the outcome of a test...

the_server:/etc/postfix# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 fully.qualified.domain.name ESMTP Postfix (Debian/GNU)
helo me@local_virtual_domain
250 fully.qualified.domain.name
mail from: me@local_virtual_domain
250 2.1.0 Ok
rcpt to: me@external_email_address
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
test
.
250 2.0.0 Ok: queued as 854191685BBF
quit
221 2.0.0 Bye
Connection closed by foreign host.



Nov 8 22:19:25 the_server postfix/smtpd[18067]: connect from localhost[127.0.0.1]
Nov 8 22:20:14 the_server postfix/smtp[19035]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Nov 8 22:20:15 the_server postfix/master[18051]: warning: process /usr/lib/postfix/smtp pid 19035 exit status 1
Nov 8 22:20:15 the_server postfix/master[18051]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Nov 8 22:20:32 the_server postfix/smtpd[18067]: CF32188C345: client=localhost[127.0.0.1]
Nov 8 22:20:41 the_server postfix/cleanup[19817]: CF32188C345: message-id=<20061108222031.CF32188C345@fully.qualified.domain.name>
Nov 8 22:20:41 the_server postfix/qmgr[18059]: CF32188C345: from=<me@local_virtual_domain>, size=381, nrcpt=1 (queue active)
Nov 8 22:20:43 the_server postfix/smtpd[18067]: disconnect from localhost[127.0.0.1]
Nov 8 22:21:15 the_server postfix/smtp[20693]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Nov 8 22:21:18 the_server postfix/master[18051]: warning: process /usr/lib/postfix/smtp pid 20693 exit status 1
Nov 8 22:21:18 the_server postfix/master[18051]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
 
Old 11-09-2006, 04:56 AM   #2
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Hi

The error is in your log file

fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter

You havent specified a passwd table in your config file, and once you have done that you need to

#postmap config_file

This should then hash the table so postfix can read it
 
Old 11-20-2006, 07:49 AM   #3
aaf
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: Ubuntu & Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Hi and thanks for your help so far....

I saw that, but was surprised that the tutorial would leave out something so important.

Is that information not superceded by the config in the etc/postfix/sasl/smtpd.conf?

I thought that maybe the clue was in the sentence (in the tutorial) - "The only pitfall is that Debian runs Postfix in a chroot'ed environment in /var/spool/postfix by default".

I tried moving the smtpd.conf file for /etc/postfix/sasl to /var/spool/postfix/etc/postfix/sasl and it failed again. However this time it failed after I specified the recipient with "554 me@external_email_address: Relay access denied.

Do you think I am on the right track?

I'm still getting the error message about the smtp_sasl_password_maps file though :-(
 
Old 11-22-2006, 01:34 PM   #4
aaf
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: Ubuntu & Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Anyone? I'm just about to dive in and start experimenting so any last minute tips would be very much appreciated.
 
  


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
SMTP "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 08:19 AM
Postfix SMTP issue cbekannan06 Linux - Software 3 08-05-2006 12:15 AM
postfix smtp issue(s) (fedora core 4) alfNtexas Linux - Software 4 10-05-2005 03:44 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
sasl/postfix smtp relay problems 5teve-o Red Hat 0 04-02-2005 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 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