Jeff Potter writes:

What I’d like to do is be able to log the connection IPs to get some quantitative numbers around this.

For a custom one-off scenario, one potential approach to collect some data is to add a wrapper that invokes courieresmtpd. Normally couriertcpd starts courieresmtpd for each new incoming connection. You could modify the startup scripts trivially to invoke your own wrapper instead, which would then invoke courieresmtpd normally, after logging the connecting IP address.

This is technically not the same as logging each mail's IP address, but the IP address each connection uses. The differences in the data would be connection attempts that do not send any mail (probes, other random noise), and connections that send multiple emails over the same session.

Attachment: pgpKcjpFog5JP.pgp
Description: PGP signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to