So if I understand correctly, what you did below was this:
- Install/configure popbsmtpd on myvietnam, known as myvietnam.org.
- Pop your mail for account rhs from outside your network (from rr.com).
- Send mail through myvietnam from outside your network (rr.com again).
The mail you tried to send was rejected because relay access was denied.
I can't see anything wrong with your Postfix config, but the immediate
disabling of relaying by popbsmtpd is a problem. The duration for which
relaying is permitted is set in popbsmtpd.conf as follows:
auth_duration = 30
Make sure this is a positive number; recently someone tried a negative
number and got the result that you are getting. You can see what popbsmtpd
thinks it is using with
My output looks like this:
source_log = /var/log/pop-imap-login.log
auth_db = /etc/postfix/pop-before-smtp.db
If this does not point out the problem, you can stop the daemon and run it
from the command line with more verbose logging, and see if that shows up
I hope this helps; let me know how you succeed. If you can't get it going,
send me the logging output and the configuration file.
Larry Nguyen said:
> 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: reject: RCPT from
> rrcs-sw-24-153-136-148.biz.rr.com[220.127.116.11]: 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
> 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
> smtpd_restriction_classes =
> smtpd_sasl_auth_enable = no
> smtpd_sasl_local_domain = $myhostname
> smtpd_sasl_security_options = noanonymous
> smtpd_sender_restrictions =
> 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: Login user=rhs host=localhost
> [127.0.0.1] nmsgs=0/0
> Dec 21 09:29:36 myvietnam popbsmtpd: Relaying ENABLED (started)
> for user rhs at 18.104.22.168
> Dec 21 09:29:36 myvietnam popbsmtpd: Relaying DISABLED for
> Dec 21 09:29:36 myvietnam spop3: 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.