Thought I won't need popbsmtpd until now :) I went through your how-to,
tested each step successfully, i.e, manually add the IP into
pop-before-smtp, regenerate the database, send a test message
successfully, edit syslog-ng.conf, able to see user login when doing cat
/var/log/pop-imap-login.log.
I did edit main.cf to set the 2 tests smtpd_client_restrictions and
smtpd_recipient_restricions to include check_client_access
hash:/etc/postfix/pop-before-smtp, reload postfix, start popbsmtpd. When
trying to send a message I received
Dec 21 09:37:37 myvietnam postfix/smtpd[2499]: reject: RCPT from
rrcs-sw-24-153-136-148.biz.rr.com[24.153.136.148]: 554
<larrynguyenus yahoo.com>: Recipient address rejected: Relay access
denied; from=<rhs myvietnam.org> to=<larrynguyenus yahoo.com>
Below is my postconf | grep smtpd
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_mynetworks,check_client_access
hash:/etc/postfix/pop-before-smtp,hash:/etc/postfix/access
smtpd_delay_reject = no
smtpd_error_sleep_time = 5
smtpd_etrn_restrictions =
smtpd_hard_error_limit = 100
smtpd_helo_required = yes
smtpd_helo_restrictions =
smtpd_junk_command_limit = 1000
smtpd_recipient_limit = 1000
smtpd_recipient_restrictions = permit_mynetworks,check_client_access
hash:/etc/postfix/pop-before-smtp,reject_maps_rbl,check_relay_domains
smtpd_restriction_classes =
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions =
permit_mynetworks,hash:/etc/postfix/access,reject_unknown_sender_domain
smtpd_soft_error_limit = 10
smtpd_timeout = 300
For some reason popbsmtpd enable relaying after user log in then disable
it right away. Please see below.
Dec 21 09:29:36 myvietnam spop3[2482]: Login user=rhs host=localhost
[127.0.0.1] nmsgs=0/0
Dec 21 09:29:36 myvietnam popbsmtpd[2456]: Relaying ENABLED (started) for
user rhs at 24.153.136.148
Dec 21 09:29:36 myvietnam popbsmtpd[2456]: Relaying DISABLED for
24.153.136.148
Dec 21 09:29:36 myvietnam spop3[2482]: Logout user=rhs host=localhost
[127.0.0.1] nmsgs=0 ndele=0
I apologize for the long email and really do appreciate your help.
-Larry