List Info

Thread: Re: SMTP AUTH




Re: SMTP AUTH
user name
2007-08-13 18:36:07
This is the output to the MAIL LOG,

Aug 13 19:15:57 cpe-94-973-964-82 postfix/smtp[24382]:
80FC438C0807: 
to=<meyahoo.com>,
relay=smtp-auth.no-ip.com[24.126.222.92]:3325, 
delay=0.42, delays=0.05/0.01/0.26/0.1, dsn=5.7.1,
status=bounced (host 
smtp-auth.my.com[24.126.222.92] said: 554 5.7.1 
<cpe-94-973-964-82.phx.res.rr.com[94-93-94-81]>:
Client host rejected: 
Access denied (in reply to RCPT TO command))

This is the AUTH LOG,

Aug 13 19:30:51 cpe-94-973-964-82 postfix/smtpd[24656]: sql
auxprop plugin 
using mysql engine

This is the SALSFINGER -S output,


saslfinger - postfix Cyrus sasl configuration Mon Aug 13
19:32:15 EDT 2007
version: 1.0
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.3.3
System: Fedora Core release 6 (Zod)

-- smtpd is linked to --
	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00a37000)

-- active SMTP AUTH and TLS parameters for smtpd --
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous


-- listing of /usr/lib/sasl --
total 160
drwxr-xr-x   2 root root   4096 Oct 29  2006 .
drwxr-xr-x 151 root root 122880 Jul 28 04:40 ..
-rw-r--r--   1 root root    285 Oct  4  2006 sample.conf
-rw-r--r--   1 root root    263 Oct  4  2006 sample.conf~
-rw-r--r--   1 root root    287 Oct  1  2006 sampleOLD.conf
-rw-r--r--   1 root root     45 Oct 29  2006 smtpd.conf
-rw-r--r--   1 root root    285 Oct  4  2006 smtpd.conf~
-rw-r--r--   1 root root    285 Oct  4  2006
smtpd.conf.rpmsave
-rw-r--r--   1 root root    287 Oct  1  2006 smtpdOLD.conf

-- listing of /usr/lib/sasl2 --
total 3460
drwxr-xr-x   2 root root   4096 Aug 13 19:29 .
drwxr-xr-x 151 root root 122880 Jul 28 04:40 ..
-rwxrwxrwx   1 root root  14774 Oct  8  2006 gen-auth.pl
-rw-r--r--   1 root root     21 Oct  2  2006 junk.txt
-rwxr-xr-x   1 root root    884 Sep 29  2006
libanonymous.la
-rwxr-xr-x   1 root root  14596 Sep 29  2006
libanonymous.so
-rwxr-xr-x   1 root root  14596 Sep 29  2006
libanonymous.so.2
-rwxr-xr-x   1 root root  14596 Sep 29  2006
libanonymous.so.2.0.22
-rwxr-xr-x   1 root root    870 Sep 29  2006 libcrammd5.la
-rwxr-xr-x   1 root root  17056 Sep 29  2006 libcrammd5.so
-rwxr-xr-x   1 root root  17056 Sep 29  2006
libcrammd5.so.2
-rwxr-xr-x   1 root root  17056 Sep 29  2006
libcrammd5.so.2.0.22
-rwxr-xr-x   1 root root    893 Sep 29  2006
libdigestmd5.la
-rwxr-xr-x   1 root root  47204 Sep 29  2006
libdigestmd5.so
-rwxr-xr-x   1 root root  47204 Sep 29  2006
libdigestmd5.so.2
-rwxr-xr-x   1 root root  47204 Sep 29  2006
libdigestmd5.so.2.0.22
-rwxr-xr-x   1 root root    856 Sep 29  2006 liblogin.la
-rwxr-xr-x   1 root root  14976 Sep 29  2006 liblogin.so
-rwxr-xr-x   1 root root  14976 Sep 29  2006 liblogin.so.2
-rwxr-xr-x   1 root root  14976 Sep 29  2006
liblogin.so.2.0.22
-rwxr-xr-x   1 root root    856 Sep 29  2006 libplain.la
-rwxr-xr-x   1 root root  15072 Sep 29  2006 libplain.so
-rwxr-xr-x   1 root root  15072 Sep 29  2006 libplain.so.2
-rwxr-xr-x   1 root root  15072 Sep 29  2006
libplain.so.2.0.22
-rwxr-xr-x   1 root root    930 Sep 29  2006 libsasldb.la
-rwxr-xr-x   1 root root 905200 Sep 29  2006 libsasldb.so
-rwxr-xr-x   1 root root 905200 Sep 29  2006 libsasldb.so.2
-rwxr-xr-x   1 root root 905200 Sep 29  2006
libsasldb.so.2.0.22
-rwxr-xr-x   1 root root    878 Sep 29  2006 libsql.la
-rwxr-xr-x   1 root root  23276 Sep 29  2006 libsql.so
-rwxr-xr-x   1 root root  23276 Sep 29  2006 libsql.so.2
-rwxr-xr-x   1 root root  23276 Sep 29  2006
libsql.so.2.0.22
-rw-r--r--   1 root root   6030 Oct  2  2006 output.txt
-rw-r--r--   1 root root   8049 Oct  2  2006 postc
-rw-r--r--   1 root root   8049 Oct  2  2006 postc~
-rw-r--r--   1 root root   5124 Oct  4  2006 postconf.txt
-rw-r--r--   1 root root    286 Aug 13 19:29 sample.conf
-rw-r--r--   1 root root     84 Aug 13 19:06 sample.conf~
-rw-r--r--   1 root root    400 Oct  8  2006 saslfinger.txt
-rw-r--r--   1 root root     24 Oct 22  2006 smtpd2.conf
-rw-r--r--   1 root root    286 Aug 13 19:29 smtpd.conf
-rw-r--r--   1 root root     82 Aug 13 19:13 smtpd.conf~
-rw-r--r--   1 root root     24 Oct  2  2006
smtpd.conf.rpmnew
-rw-r--r--   1 root root    287 Oct 23  2006
smtpd.conf.rpmsave
-rw-r--r--   1 root root    287 Aug  9 20:53
smtpdDBMAIL.conf
-rw-r--r--   1 root root      0 Oct 16  2006
smtpdWORKS.conf
-rwxrwxrwx   1 root root    200 Oct  2  2006 teltest.pl
-rw-r--r--   1 root root    200 Oct  2  2006 teltest.sh
-rw-r--r--   1 root root    199 Oct  2  2006 teltest.sh~
-rw-r--r--   1 root root      0 Oct  2  2006 tel.txt

-- listing of /usr/local/lib/sasl2 --
total 2280
drwxr-xr-x 2 root root   4096 Sep 30  2006 .
drwxr-xr-x 4 root root   4096 Oct 10  2006 ..
-rwxr-xr-x 1 root root    695 Sep 30  2006 libanonymous.la
-rwxr-xr-x 1 root root  55287 Sep 30  2006 libanonymous.so
-rwxr-xr-x 1 root root  55287 Sep 30  2006
libanonymous.so.2
-rwxr-xr-x 1 root root  55287 Sep 30  2006
libanonymous.so.2.0.22
-rwxr-xr-x 1 root root    683 Sep 30  2006 libcrammd5.la
-rwxr-xr-x 1 root root  61405 Sep 30  2006 libcrammd5.so
-rwxr-xr-x 1 root root  61405 Sep 30  2006 libcrammd5.so.2
-rwxr-xr-x 1 root root  61405 Sep 30  2006
libcrammd5.so.2.0.22
-rwxr-xr-x 1 root root    713 Sep 30  2006 libdigestmd5.la
-rwxr-xr-x 1 root root 126446 Sep 30  2006 libdigestmd5.so
-rwxr-xr-x 1 root root 126446 Sep 30  2006
libdigestmd5.so.2
-rwxr-xr-x 1 root root 126446 Sep 30  2006
libdigestmd5.so.2.0.22
-rwxr-xr-x 1 root root    763 Sep 30  2006 libgssapiv2.la
-rwxr-xr-x 1 root root  79626 Sep 30  2006 libgssapiv2.so
-rwxr-xr-x 1 root root  79626 Sep 30  2006 libgssapiv2.so.2
-rwxr-xr-x 1 root root  79626 Sep 30  2006
libgssapiv2.so.2.0.22
-rwxr-xr-x 1 root root    679 Sep 30  2006 liblogin.la
-rwxr-xr-x 1 root root  56483 Sep 30  2006 liblogin.so
-rwxr-xr-x 1 root root  56483 Sep 30  2006 liblogin.so.2
-rwxr-xr-x 1 root root  56483 Sep 30  2006
liblogin.so.2.0.22
-rwxr-xr-x 1 root root    668 Sep 30  2006 libotp.la
-rwxr-xr-x 1 root root 121082 Sep 30  2006 libotp.so
-rwxr-xr-x 1 root root 121082 Sep 30  2006 libotp.so.2
-rwxr-xr-x 1 root root 121082 Sep 30  2006 libotp.so.2.0.22
-rwxr-xr-x 1 root root    679 Sep 30  2006 libplain.la
-rwxr-xr-x 1 root root  56941 Sep 30  2006 libplain.so
-rwxr-xr-x 1 root root  56941 Sep 30  2006 libplain.so.2
-rwxr-xr-x 1 root root  56941 Sep 30  2006
libplain.so.2.0.22
-rwxr-xr-x 1 root root    704 Sep 30  2006 libsasldb.la
-rwxr-xr-x 1 root root  98065 Sep 30  2006 libsasldb.so
-rwxr-xr-x 1 root root  98065 Sep 30  2006 libsasldb.so.2
-rwxr-xr-x 1 root root  98065 Sep 30  2006
libsasldb.so.2.0.22
-rwxr-xr-x 1 root root    690 Sep 30  2006 libsql.la
-rwxr-xr-x 1 root root  59571 Sep 30  2006 libsql.so
-rwxr-xr-x 1 root root  59571 Sep 30  2006 libsql.so.2
-rwxr-xr-x 1 root root  59571 Sep 30  2006 libsql.so.2.0.22

-- listing of /etc/sasl2 --
total 24
drwxr-xr-x   2 root root  4096 Sep 29  2006 .
drwxr-xr-x 115 root root 12288 Aug  9 21:49 ..




-- content of /usr/lib/sasl/smtpd.conf --
pwcheck_method: auxprop
saslauthd_version: 2

-- content of /usr/lib/sasl2/smtpd.conf --
log_level: 3

pwcheck_method: auxprop
auxprop_plugin: sql

sql_engine: mysql
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN

sql_hostnames: localhost
sql_user: --- replaced ---
sql_passwd: --- replaced ---
sql_database: dbmail
sql_verbose: yes
sql_select: SELECT passwd FROM dbmail_users WHERE userid =
'%u'


-- active services in /etc/postfix/master.cf --
# service type  private unpriv  chroot  wakeup  maxproc
command + args
#               (yes)   (yes)   (yes)   (never) (100)
smtp      inet  n       -       n       -       -      
smtpd -v

pickup    fifo  n       -       n       60      1      
pickup
cleanup   unix  n       -       n       -       0      
cleanup
qmgr      fifo  n       -       n       300     1      
qmgr
tlsmgr    unix  -       -       n       1000?   1      
tlsmgr
rewrite   unix  -       -       n       -       -      
trivial-rewrite
bounce    unix  -       -       n       -       0      
bounce
defer     unix  -       -       n       -       0      
bounce
trace     unix  -       -       n       -       0      
bounce
verify    unix  -       -       n       -       1      
verify
flush     unix  n       -       n       1000?   0      
flush
proxymap  unix  -       -       n       -       -      
proxymap
smtp      unix  -       -       n       -       -      
smtp
relay     unix  -       -       n       -       -      
smtp
	-o fallback_relay=
showq     unix  n       -       n       -       -      
showq
error     unix  -       -       n       -       -      
error
discard   unix  -       -       n       -       -      
discard
local     unix  -       n       n       -       -      
local
virtual   unix  -       n       n       -       -      
virtual
lmtp      unix  -       -       n       -       -      
lmtp
anvil     unix  -       -       n       -       1      
anvil
scache	  unix	-	-	n	-	1	scache


dbmail-lmtp     unix    -       -       n       -       -   
   lmtp




amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o
smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o 
receive_override_options=no_unknown_recipient_checks,no_head
er_body_checks
        -o smtpd_bind_address=127.0.0.1



maildrop  unix  -       n       n       -       -      
pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d
$


old-cyrus unix  -       n       n       -       -      
pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m
$ 
$
cyrus     unix  -       n       n       -       -      
pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r
$ -m 
$ $
uucp      unix  -       n       n       -       -      
pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender -
$nexthop!rmail 
($recipient)
ifmail    unix  -       n       n       -       -      
pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop
($recipient)
bsmtp     unix  -       n       n       -       -      
pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender
$nexthop 
$recipient

-- mechanisms on localhost --
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5


-- end of saslfinger output --



I can send mail through that server with MS Outlook...


Thanks,
Jim


>From: Marc Dirix <marcelectronics-design.nl>
>Reply-To: marcelectronics-design.nl,DBMail mailinglist
<dbmaildbmail.org>
>To: DBMail mailinglist <dbmaildbmail.org>
>Subject: Re: [Dbmail] SMTP AUTH
>Date: Mon, 13 Aug 2007 00:46:17 +0200
>
>It took me to create a symbollic link:
>
>/etc/postfix/sasl -> /usr/lib/sasl2/
>
>And hack the smtpd.conf in /usr/lib/sasl2
>
><main.conf>
>#SASL parameters
>
>smtpd_sasl_auth_enable = yes
>smtpd_sasl_autheticated_header = yes
>smtpd_sasl_path= smtpd
></main.conf>
>
>
>If the above is setup right, /var/log/auth.log *should*
output
>at least sasl messages.
>
>If it doesn't output them, then maybe your client is not
setup
>for doing auth right?
>
>Marc
>_______________________________________________
>DBmail mailing list
>DBmaildbmail.org
>htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

____________________________________________________________
_____
More photos, more messages, more storage—get 2GB with
Windows Live Hotmail. 
http://imagine-
windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_mig
ration_HM_mini_2G_0507

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: SMTP AUTH
country flaguser name
Netherlands
2007-08-14 01:42:51

Op 14-aug-2007, om 1:36 heeft Jim Douglas het volgende
geschreven:

> This is the output to the MAIL LOG,
>
> Aug 13 19:15:57 cpe-94-973-964-82 postfix/smtp[24382]: 

> 80FC438C0807: to=<meyahoo.com>,
relay=smtp-auth.no-ip.com 
> [24.126.222.92]:3325, delay=0.42,
delays=0.05/0.01/0.26/0.1,  
> dsn=5.7.1, status=bounced (host
smtp-auth.my.com[24.126.222.92]  
> said: 554 5.7.1
<cpe-94-973-964-82.phx.res.rr.com[94-93-94-81]>:  
> Client host rejected: Access denied (in reply to RCPT
TO command))
>
> This is the AUTH LOG,
>
> Aug 13 19:30:51 cpe-94-973-964-82 postfix/smtpd[24656]:
sql auxprop  
> plugin using mysql engine
>


Is it normal the bounce has an earlier timestamp than the
authlog  
notice?

Aren't there anymore log notices in authlog about the same
connection?

Did you create the symlinks to your postfix directory?

Marc
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )