Koozali.org: home of the SME Server

SMTP

Patric

SMTP
« on: November 18, 2003, 05:23:27 PM »
I want from every mail that comes in on my 5.5 server a "cc" to a "spy"account.
s this possible ?
I want to see what mail is send on my server, not only logs.


Patric

Michael Smith

Re: SMTP
« Reply #1 on: November 18, 2003, 05:30:37 PM »
Assuming you don't have too many accounts, you can set each one to "both deliver locally and forward" and set up the forwarding to "spy@whatever.net".  The recipient will not know this has been done.

There are fancier ways to do this; search the forums!  This way is quick & dirty and only handles incoming, but it works and requires nothing more than Server Manager to use.

RayG

Re: SMTP
« Reply #2 on: November 18, 2003, 06:31:29 PM »
The problem comes in with mail sent from your users. You would have to set up their email clients to cc all outgoing email to your spy account. That can be easily defeated.

Qmail does have a built in mechanism to do this but you will have to install the SME developers kit and recompile Qmail to use this feature. Grab a copy of "Life With Qmail" off the net and read through the Qmail faq. They will describe the procedure. I've found the most information on the topic by searching for "queue_extra" which is the variable name that defines the spy account.

The end result will be an email box on your server that gets a copy of ALL incomming and outgoing email.

Patric

Re: SMTP
« Reply #3 on: November 18, 2003, 07:05:18 PM »
Found a nice howto :

http://www.quasarsoft.com.au/howtos/html/mailcapture_howto.html

if there are more suggestions, let me now.

Patric

Darrell May

Re: SMTP
« Reply #4 on: November 18, 2003, 10:59:03 PM »
I'm not sure if this will work on SME5.5.  I expect it will but offer no guarantees!!!

If you have a test server running 5.5 and wish to give this try, please report your results.

1) From your closest mirror, download this rpm.  Example: http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/CharlieBrady/
RPMS/i386/mailfront-0.86-1es2.i386.rpm

2) Use the server-manager to add a user named 'maillog'

3) Add the rpm:
   # rpm -Uvh mailfront-0.86-1es2.i386.rpm

4) Add the environment variable:
   # echo maillog > /var/service/smtpfront-qmail/env/LOG_RECIPIENT

5) Send some e-mails and you should find messages delivered to intended recipients plus archival copies in the 'maillog' inbox.

Darrell

Patric

Re: SMTP
« Reply #5 on: November 19, 2003, 06:15:44 PM »
Works great Darrel thanks.

Patric