I normally do this out of the MTA.
In case of postfix I have a policy daemon which I use for customized rate limiting, so I throw in the last login timestamp as well.
With exim it would be very easy to do it out of the ACLs.


On 10/29/2014 01:54 PM, Eduardo Ramos wrote:
Hey guys!

I've been googling without success. Do anyone know if there is a way to track last login of a smtp authentication?

I've tried without success using:

service auth {
  executable = auth lastlogin
  unix_listener auth-userdb {
  }

  unix_listener /var/spool/postfix/private/auth {
    mode = 0660
    group = postfix
  }
}

service lastlogin {
  executable = script-login -d /usr/local/bin/lastlogin.sh
  unix_listener lastlogin {
    user = $default_internal_user
    mode = 0666
  }
}

Reply via email to