Koozali.org: home of the SME Server

help?? Log User Access to Email (webmail, POP3s, IMAPs)?

Offline FNC

  • *
  • 12
  • +0/-0
Re: help?? Log User Access to Email (webmail, POP3s, IMAPs)?
« Reply #15 on: March 30, 2009, 02:49:42 PM »
Hi, mmccarn

I am trying to modify pop3 (sorry I made a typo in my previous post).

qmail-pop3d-wrapper.sh is exacutable

Code: [Select]
[root@mail ~]# ll /var/qmail/bin/qmail-pop3d-wrapper.sh
-rwxrwxrwx  1 root qmail 92 Mar 30 07:19 /var/qmail/bin/qmail-pop3d-wrapper.sh

And:

Code: [Select]
[root@mail ~]# cat /var/qmail/bin/qmail-pop3d-wrapper.sh
#!/bin/sh
echo "qmail-pop3d: user $USER logged in from $TCPREMOTEIP:$TCPREMOTEPORT" >&7
$@

My /var/service/pop3/run looks like this:

Code: [Select]
[root@mail ~]# cat /var/service/pop3/run
#!/bin/sh

hostname=$(/sbin/e-smith/config get SystemName)
domain=$(/sbin/e-smith/config get DomainName)
fqdn="$hostname.$domain"

#exec 2>&1
exec 2>&1 7>&1
# Generate ACL files in ./peers
./control/1
exec /usr/local/bin/softlimit -m 5000000 \
    tcpsvd \
        -v \
        -i ./peers \
        -c ${CONCURRENCYREMOTE:-200} \
        -C ${PER_IP_INSTANCES:-4}:'421 per host concurrency limit reached\r\n' \
        -l ${LOCALNAME:-0} \
        ${LISTENIP:-0} \
        ${PORT:-pop3} \
            /var/qmail/bin/qmail-popup $fqdn \
                #checkpassword  /var/qmail/bin/qmail-pop3d Maildir \
                checkpassword \
                /var/qmail/bin/qmail-pop3d-wrapper.sh \
                /var/qmail/bin/qmail-pop3d Maildir

After I made the cange I did this:

Code: [Select]
[root@mail ~]# /etc/init.d/pop3 restart
Restarting pop3                                            [  OK  ]

Thank you for all your help.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: help?? Log User Access to Email (webmail, POP3s, IMAPs)?
« Reply #16 on: March 30, 2009, 03:21:25 PM »
Quote
Code: [Select]
...
           /var/qmail/bin/qmail-popup $fqdn \
                #checkpassword  /var/qmail/bin/qmail-pop3d Maildir \
                checkpassword \
...
I suspect you need to completely delete the line that says #checkpassword /var/qmail/bin/qmail-pop3d Maildir \ -- I don't think you can add a comment to the middle of a continued line like that...