Share

pop-before-smtp

Tracker: Support Requests

5 OpenWebMail not working with POP-before-SMTP - ID: 1770130
Last Update: Tracker Item Submitted ( cfogarty )

I would like to avoid pop-before-smtp all together when using OpenWebMail
or when mailing from the box (I have web contact form processors that email
using the PHP mail tool and of course cron, etc...). How do I stop local
IP’s from having to authenticate?

Here is what I have: if this doesn’t include the correct POP log, can you
tell me where to look for that log?

/etc/mail/sendmail.cf:
# Add these lines to your ~/etc/sendmail.cf to implement the
POP-before-SMTP
# anti-spam configuration. Substitute a tab character(s) for [tab] below.

Krelayers hash /etc/mail/popauth
Kdequote dequote

###########################################################################
##
# Anti-Spam Support: Limit SMTP relaying to previously authenticated users
#
# NEED THIS SECTION FOR pop-before-smtp !!!
###########################################################################
##
Scheck_rcpt
R< $+ @ $=w > $@ OK
R$+ $: $(dequote "" $&{client_addr} $) $| $1
R0 $| $* $@ OK
R$* $| $* $: $(relayers $1 $: ERROR $)
RERROR $#error $@ 5.7.1 $: "550 SMTP relay denied,
authenticate via POP/IMAP first. Thanks BMF Engineering"
R$* $@ OK

/etc/pop-before-smtp-conf.pl:
sub mynet_sendmail
{
# You'll probably want to edit this (it specifies IP ranges to
ignore).
'127.0.0.0/8 209.204.114.136/29';
#'127.0.0.0/8 209.204.114.141/29';
#'209.204.114.141/29';
#'127.0.0.0/8';
}

/etc/mail/access

## RUN command below after modifying this file!!
## makemap hash /etc/mail/access.db < /etc/mail/access
209.204.114.141 RELAY
209.204.114.142 RELAY
localhost.localdomain RELAY
www01@localhost RELAY
www01 RELAY
localhost RELAY
127.0.0.1 RELAY
mike@mikedugan.com RELAY
Connect:75.49.203.118 REJECT

root@bmf-ws3 mail# pop-before-smtp --list
The database holds 12 IPs:
207.172.239.42
216.9.248.138
24.225.250.193
24.225.250.216
24.225.250.218
24.225.250.92
24.229.149.48
67.165.24.206
67.80.219.246
72.92.22.145
76.116.69.153
76.6.48.75

root@bmf-ws3 mail# pop-before-smtp --dumpconfig
config file: /etc/pop-before-smtp-conf.pl
watchlog: /var/adm/messages
dbfile: /etc/mail/popauth
logto: /var/log/pop-before-smtp
pat: "^[LOGTIME] \S+ (?:in\.q|q)?popper[^[]*\[\d+\]: \[[^]]*\] \([^)]*\)
POP login by user "[^"]+" at \([^)]+\) (\d+\.\d+\.\d+\.\d+)"
logtime_pat: "(\w\w\w +\d+ \d+:\d+:\d+)"

Here is a tail from the pop-before-smtp --debug --nowrite —reprocess
command:

Aug 7 16:29:57 setting expiration time for ip=24.225.250.216 to
1186520395
Aug 7 16:29:57 found ip=67.165.24.206 (0)
Aug 7 16:29:57 setting expiration time for ip=67.165.24.206 to 1186520397
Aug 7 16:30:02 found ip=67.165.24.206 (0)
Aug 7 16:30:02 setting expiration time for ip=67.165.24.206 to 1186520399
Aug 7 16:30:47 found ip=24.225.250.193 (0)
Aug 7 16:30:47 setting expiration time for ip=24.225.250.193 to
1186520446
Aug 7 16:31:08 found ip=67.165.24.206 (0)
Aug 7 16:31:08 setting expiration time for ip=67.165.24.206 to 1186520464
Aug 7 16:31:08 found ip=67.165.24.206 (0)
Aug 7 16:31:08 setting expiration time for ip=67.165.24.206 to 1186520466
Aug 7 16:31:18 found ip=67.80.219.246 (0)
Aug 7 16:31:18 setting expiration time for ip=67.80.219.246 to 1186520473
Aug 7 16:31:18 found ip=24.225.250.216 (0)
Aug 7 16:31:18 setting expiration time for ip=24.225.250.216 to
1186520477
Aug 7 16:31:28 found ip=24.225.250.193 (0)
Aug 7 16:31:28 setting expiration time for ip=24.225.250.193 to
1186520486
Aug 7 16:31:33 found ip=76.116.69.153 (0)
Aug 7 16:31:33 setting expiration time for ip=76.116.69.153 to 1186520491
Aug 7 16:31:58 found ip=207.172.239.42 (0)
Aug 7 16:31:58 setting expiration time for ip=207.172.239.42 to
1186520517
Aug 7 16:32:13 found ip=67.165.24.206 (0)
Aug 7 16:32:13 setting expiration time for ip=67.165.24.206 to 1186520532
Aug 7 16:32:18 found ip=67.165.24.206 (0)
Aug 7 16:32:18 setting expiration time for ip=67.165.24.206 to 1186520534

root@bmf-ws3 log# tail -25 syslog
Aug 7 16:32:17 bmf-ws3 sendmail[27311]: [ID 801593 mail.warning]
l77KWGtv027304: forward /www01/hcymca/kkloss/.forward.bmfenterprises: World
writable directory
Aug 7 16:32:17 bmf-ws3 sendmail[27311]: [ID 801593 mail.warning]
l77KWGtv027304: forward /www01/hcymca/kkloss/.forward: World writable
directory
Aug 7 16:32:17 bmf-ws3 sendmail[27311]: [ID 801593 mail.info]
l77KWGtv027304: to=<kkloss@hcymca.com>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=36339, dsn=2.0.0, stat=Sent
Aug 7 16:32:21 bmf-ws3 sendmail[27309]: [ID 801593 mail.info]
l77KWLDF027309: from=<jbrown@hcymca.com>, size=15598, class=0, nrcpts=1,
msgid=<4F.0E.28708.8F7D8B64@mxo4.broadbandsupport.net>, proto=ESMTP,
daemon=MTA, relay=mxo4.broadbandsupport.net [209.55.3.84]
Aug 7 16:32:21 bmf-ws3 sendmail[27317]: [ID 801593 mail.warning]
l77KWLDF027309: forward /www01/hcymca/jwhite/.forward.bmfenterprises+:
World writable directory
Aug 7 16:32:21 bmf-ws3 sendmail[27317]: [ID 801593 mail.warning]
l77KWLDF027309: forward /www01/hcymca/jwhite/.forward+: World writable
directory
Aug 7 16:32:21 bmf-ws3 sendmail[27317]: [ID 801593 mail.warning]
l77KWLDF027309: forward /www01/hcymca/jwhite/.forward.bmfenterprises: World
writable directory
Aug 7 16:32:21 bmf-ws3 sendmail[27317]: [ID 801593 mail.warning]
l77KWLDF027309: forward /www01/hcymca/jwhite/.forward: World writable
directory
Aug 7 16:32:21 bmf-ws3 sendmail[27317]: [ID 801593 mail.info]
l77KWLDF027309: to=<jwhite@hcymca.com>, ctladdr=<jbrown@hcymca.com>
(221/1), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=45820,
dsn=2.0.0, stat=Sent
Aug 7 16:32:22 bmf-ws3 sendmail[27310]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=dslb-082-083-204-152.pools.arcor-ip.net,
arg2=127.0.0.2, relay=dslb-082-083-204-152.pools.arcor-ip.net
[82.83.204.152], reject=553 5.3.0 Spam blocked see:
http://spamcop.net/bl.shtml?82.83.204.152
Aug 7 16:32:22 bmf-ws3 sendmail[27319]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=dslb-088-064-026-204.pools.arcor-ip.net,
arg2=127.0.0.11, reject=550 5.7.1 Mail from 88.64.26.204 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:22 bmf-ws3 sendmail[27320]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=user-0cdvls6.cable.mindspring.com,
arg2=127.0.0.11, relay=user-0cdvls6.cable.mindspring.com [24.223.215.134],
reject=550 5.7.1 Mail from 24.223.215.134 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:23 bmf-ws3 sendmail[27313]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[201.52.255.6], arg2=127.0.0.2,
relay=c900ff06.virtua.com.br [201.52.255.6] (may be forged), reject=553
5.3.0 Spam blocked see: http://spamcop.net/bl.shtml?201.52.255.6
Aug 7 16:32:25 bmf-ws3 sendmail[27315]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[88.228.55.8], arg2=127.0.0.11,
relay=[88.228.55.8], reject=550 5.7.1 Mail from 88.228.55.8 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:25 bmf-ws3 sendmail[27316]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[212.50.184.130], arg2=127.0.0.2,
relay=[212.50.184.130], reject=553 5.3.0 Spam blocked see:
http://spamcop.net/bl.shtml?212.50.184.130
Aug 7 16:32:37 bmf-ws3 sendmail[27323]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[88.228.55.8], arg2=127.0.0.11,
relay=[88.228.55.8], reject=550 5.7.1 Mail from 88.228.55.8 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:39 bmf-ws3 sendmail[27324]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=user-0cdvls6.cable.mindspring.com,
arg2=127.0.0.11, relay=user-0cdvls6.cable.mindspring.com [24.223.215.134],
reject=550 5.7.1 Mail from 24.223.215.134 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:50 bmf-ws3 sendmail[27325]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[68.17.10.130], arg2=127.0.0.2,
relay=[68.17.10.130], reject=553 5.3.0 Spam blocked see:
http://spamcop.net/bl.shtml?68.17.10.130
Aug 7 16:32:50 bmf-ws3 sendmail[27328]: [ID 801593 mail.info]
l77KWnBu027328:
from=<owner-nolist-37633_*MIKE**MIKEDUGAN*-COM@PINBALL.OBTUSEOBSTRUCTION.CO
M>, size=8186, class=0, nrcpts=1,
msgid=<200708071636.17083.6.37633@pinball.obtuseobstruction.com>,
bodytype=8BITMIME, proto=ESMTP, daemon=MTA,
relay=flare2.obtuseobstruction.com [209.205.34.133]
Aug 7 16:32:50 bmf-ws3 sendmail[27329]: [ID 801593 mail.warning]
l77KWnBu027328: forward /www01/mikedugan/.forward.bmfenterprises+: World
writable directory
Aug 7 16:32:50 bmf-ws3 sendmail[27329]: [ID 801593 mail.warning]
l77KWnBu027328: forward /www01/mikedugan/.forward+: World writable
directory
Aug 7 16:32:50 bmf-ws3 sendmail[27329]: [ID 801593 mail.warning]
l77KWnBu027328: forward /www01/mikedugan/.forward.bmfenterprises: World
writable directory
Aug 7 16:32:50 bmf-ws3 sendmail[27329]: [ID 801593 mail.warning]
l77KWnBu027328: forward /www01/mikedugan/.forward: World writable
directory
Aug 7 16:32:50 bmf-ws3 sendmail[27326]: [ID 702911 mail.notice]
ruleset=check_relay, arg1=[88.228.55.8], arg2=127.0.0.11,
relay=[88.228.55.8], reject=550 5.7.1 Mail from 88.228.55.8 refused - see
http://www.spamhaus.org/sbl/
Aug 7 16:32:50 bmf-ws3 sendmail[27329]: [ID 801593 mail.info]
l77KWnBu027328: to=<MIKE@MIKEDUGAN.COM>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=38420, dsn=2.0.0, stat=Sent

Thank you!!!

Corey

Corey Fogarty
BMF Enterprises
www.bmfenterprises.com
908.995.4711


Corey Fogarty ( cfogarty ) - 2007-08-08 15:48

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.