Capture all incoming/outgoing email messages

Patrick Okui pokui at psg.com
Fri Oct 6 20:22:36 UTC 2006


On Friday 06 October 2006 23:11, Dominik Zalewski wrote:
> 2006/10/6, Eric <heli at mikestammer.com>:
> > Dominik Zalewski wrote:
> > > Hi,
> > >
> > > I have a gateway/firewall running FreeBSD 6.1 -release . I would like
> > > to capture all incoming and outgoing email messages to archive them. Is
> >
> > there
> >
> > > is any tool available out there ? I mean a proxy,sniffer or any other
> > > solution.
> > >
> > >>there are ways in postfix and probably most other MTAs to make a copy
> > >> of things as they are handled by the SMTP engine.  check out the
> > >> howtos on postfix.org or google a little and you should have plenty to
> > >> go on.
> > >>
> > >>Eric
>
>    I know most of MTAs can do it but I dont want users to use local MTA for
> outgoing emails, plus this solution is just for outgoing emails , what
> about pop3 ?
> I just want to capture all smtp/pop3 traffic in packets level.

man tcpdump(1) particularly the -r, -w options and the "port" primitive.

-- 
patrick


More information about the freebsd-stable mailing list