pop-before-smtp configuration:-
At first install the following packages.
Step 1: apt-get install libtimedate-perl libnet-netmask-perl libberkeleydb-perl
Step 2:- apt-get install pop-before-smtp
Step 3:- vim /etc/pop-before-smtp/pop-before-smtp.conf
( unhash the following lines)
$logto = '/var/log/pop-before-smtp';
$dbfile = '/var/lib/pop-before-smtp/hosts';
and the 4 lines portion of the following
# For Dovecot POP3/IMAP when using syslog.
( unhash the following four lines)
$pat = '^[LOGTIME] \S+ (?:dovecot: )?(?:imap|pop3)-login: ' .
'Login: .*? (?:\[|rip=)[:f]*(\d+\.\d+\.\d+\.\d+)[],]';
$out_pat = '^[LOGTIME] \S+ (?:dovecot: )?(?:imap|pop3)-login: ' .
'Disconnected.*? (?:\[|rip=)[:f]*(\d+\.\d+\.\d+\.\d+)[],]';
Now integrate with postfix.
vim /etc/postfix/main.cf
hash:/var/lib/pop-before-smtp/hosts (add this line with my networks)
restart pop-before-smtp
restart postfix
Checking log: tail –f /var/log/pop-before-smtp
No comments:
Post a Comment