LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-04-2010, 09:49 PM   #1
pau_kacang
Member
 
Registered: May 2005
Location: Malaysia
Posts: 33

Rep: Reputation: 15
Postfix & smtpd authentification problem


hello all pros,
i'm newbie in slackware. already installed postfix & spamassasin in my slack box 12.2. now i tried to configure postfix with sasl2.

here my master.cf
Code:
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd -o content_filter=spamassassin
here my main.cf
Code:
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   reject_unauth_destination
here my telnet result
Code:
root@mail:/etc/postfix# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.techmedia.com.my ESMTP Postfix (@@DISTRO@@)
ehlo localhost
250-mail.techmedia.com.my
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN CRAM-MD5 PLAIN OTP DIGEST-MD5
250-AUTH=LOGIN CRAM-MD5 PLAIN OTP DIGEST-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH LOGIN a2FtYXJ1bABrYW1hcnVsAG1hdHlvZTcy
334 UGFzc3dvcmQ6
a2FtYXJ1bABrYW1hcnVsAG1hdHlvZTcy
Connection closed by foreign host.
error on maillog
Code:
May  5 10:39:44 mail postfix/smtpd[1692]: connect from mail.techmedia.com.my[127.0.0.1]
May  5 10:40:36 mail postfix/master[22201]: warning: process /usr/libexec/postfix/smtpd pid 1692 killed by signal 11
May  5 10:40:36 mail postfix/master[22201]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
when i test using saslauthd it success
Code:
root@mail:/etc/postfix# testsaslauthd -u myusername -p mypassword
0: OK "Success."
can anybody help me to find the solution for this error
 
Old 05-04-2010, 09:59 PM   #2
pau_kacang
Member
 
Registered: May 2005
Location: Malaysia
Posts: 33

Original Poster
Rep: Reputation: 15
when i tried send email from outside local network here the error
Code:
May  5 11:04:32 mail postfix/smtpd[1846]: connect from unknown[115.134.210.124]
May  5 11:04:33 mail postfix/smtpd[1846]: NOQUEUE: reject: RCPT from unknown[115.134.210.124]: 554 5.7.1 <xxxx@yahoo.com>: Relay access denied; from=<yyyyy@mydomain.com.my> to=<xxxx@yahoo.com> proto=ESMTP helo=<thinkpad>
May  5 11:04:36 mail postfix/smtpd[1846]: disconnect from unknown[115.134.210.124]
 
Old 05-05-2010, 11:10 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by pau_kacang View Post
when i tried send email from outside local network here the error
Code:
May  5 11:04:32 mail postfix/smtpd[1846]: connect from unknown[115.134.210.124]
May  5 11:04:33 mail postfix/smtpd[1846]: NOQUEUE: reject: RCPT from unknown[115.134.210.124]: 554 5.7.1 <xxxx@yahoo.com>: Relay access denied; from=<yyyyy@mydomain.com.my> to=<xxxx@yahoo.com> proto=ESMTP helo=<thinkpad>
May  5 11:04:36 mail postfix/smtpd[1846]: disconnect from unknown[115.134.210.124]
That is probably because you are out of your "mynetworks" and probably didn't authenticate using SASL. reject_unauth_destination setting is responsible for Relay access denied message in the error log.
 
Old 05-05-2010, 11:18 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by pau_kacang View Post
here my master.cf
Code:
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd -o content_filter=spamassassin
Can you post the entire master.cf. You have spamassassin content filter but haven't shown how the mail will be processed once smtpd hands over email to that content filter.

I used something like this for my setup:

Code:
spamassassin unix - n n - 10 pipe
   user=spamassassin argv=/usr/bin/spamc -U /var/run/spamd.socket -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Ofcourse, I had spamd daemon that was running and accepting/tagging emails from postfix and putting the mail back into the postfix queue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Postfix per user smtpd restrictions damone333 Linux - Server 1 10-13-2010 03:18 PM
POSTFIX smtpd block by to: field officecase Linux - Server 9 04-13-2009 06:19 AM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Problem with Postfix (process smtpd exit status 1) breiko Linux - Server 18 03-26-2008 02:02 PM
Smtp vs. Smtpd on Postfix BeerBust Linux - Software 1 10-10-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration