LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2007, 11:46 PM   #1
nics
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
logging outgoing mails in mailserver?????


hello!!!
we need to keep a backup of outgoing mails((not incoming to an account)) through our smtp mail server...how could that be made possible??
any solutions?? we are using sendmail...
 
Old 04-22-2007, 06:07 AM   #2
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Use "Synonym" for this purpose. using that you can log all outgoing mails to one specific account or even can log outgoing mails to per user basis.
 
Old 04-22-2007, 11:39 PM   #3
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
what;s that??

what is Synonym n how can we implement it in our mail server...
please be kind enough to reply.....
 
Old 04-23-2007, 08:34 AM   #4
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Use the following link:
http://http://www.modulo.ro/Modulo/e...s/Synonym.html

My Distro was RHEL4 with sendmail as MTA and procmail as LDA.
 
Old 04-25-2007, 06:14 AM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally Posted by tanveer
Use the following link:
http://http://www.modulo.ro/Modulo/e...s/Synonym.html

My Distro was RHEL4 with sendmail as MTA and procmail as LDA.
I think you've messed up the url there.

It should be http://www.modulo.ro/Modulo/en/Products/Synonym.html
 
Old 04-25-2007, 08:08 AM   #6
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
oops sorry.
 
Old 04-25-2007, 10:53 AM   #7
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
hello!!! thanks a lot!!!
but the synonym(stable version) couldnot be installed using tar package coz command `make' and make install didnot work i wonder why??
so i did install the synonym rpm package..and it did install....
now when i modified the /etc/mail/sendmail.mc as instruted in the README file.i.e
by adding two lines

define('_FFR_MILTER', "true')
INPUT_MAIL_FILTER'Synonym', 'S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')

and did m4 <sendmail.mc > sendmail.cf
and restarted sendmail,it gave the following errors

"cannot stop smclient "/var/run/synonym/synonym.sock missing"
cannot start sm client.....
tried my level best to fix the problem but didnot work..
what should i do???? kindly provide some solutions........
thank you
 
Old 04-25-2007, 09:33 PM   #8
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Quote:
Originally Posted by nics
now when i modified the /etc/mail/sendmail.mc as instruted in the README file.i.e
by adding two lines

define('_FFR_MILTER', "true')
INPUT_MAIL_FILTER'Synonym', 'S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')

and did m4 <sendmail.mc > sendmail.cf
and restarted sendmail,it gave the following errors

"cannot stop smclient "/var/run/synonym/synonym.sock missing"
cannot start sm client.....
tried my level best to fix the problem but didnot work..
what should i do???? kindly provide some solutions........
thank you
Is there a first bracket missing in your 2nd line? Also note quotes. Try this
Code:
define(`_FFR_MILTER', `true')
INPUT_MAIL_FILTER(`Synonym', `S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')
 
Old 04-26-2007, 12:08 AM   #9
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
ummmm the bracket is missing only here...in the sendmail.mc file it s all right,.....but still it is generating the pre stated errors....
 
Old 04-26-2007, 12:09 AM   #10
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
so what can i do next?? help me out plz>>>
 
Old 04-26-2007, 03:15 AM   #11
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
hello!!!
i did up to service synonym restart as stated in the README file...
actually now it is generating errors "cannot generate or build synonym.conf file when i tried to start the synonym by doing "service synonym start". actually the synonym.conf file was commented out by using <--! in the beginning and --> ih the end..n i remove them for uncommenting .... but it still generated the error cannot build or generate the synonym.conf file.....
actually also it is not creating synonym.sock file in /var/run/synonym directory when i installed synonym using the rpm package. .as the make and make install command was generating errors relating to the synonym.c file....
and the synonym binary is also in the directory /usr/local/sbin instead of /usr/local/bin as stated in the README file.....
m really having problem to start the synonym .......
plzzz suggest on this................
 
Old 04-27-2007, 05:33 AM   #12
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
I just downloaded the rpm in RHEL4 and installed without a hitch. What distro you are using?
 
Old 04-28-2007, 08:09 AM   #13
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
now i have successfully installed the synonym package in my red hat enterprise..for that i also downloaded the sendmail development package and installed it as well.and synonym created all the files as stated in the README file...and i also did modifiy the /etc/synonym.conf file according to our need exactly in this manner
<Rules>
<Rule>
<Condition>
<Header>From</Header>
<Match>*.@sytem.info.com.np</Match>
</Condition>
<Action>
<ActionType>Copy</ActionType>
<Address>niks@system.info.com.np</Address>
</Action>
</Rule>
</Rules>


so this should copy all the mails sents from @system.info.com.np to address niks@system.info.com.np if m not wrong...but the synonym is not copying it...
i wonder why..
have done both service synonym restart and service sendmail restart...but it;s still not copying......
anything more i need to do or modify ????
please give some ideas and suggestions to make it work......
thanks!!!!
 
Old 04-29-2007, 12:50 AM   #14
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
mission accomplised

today it worked!!!
synonym does work...
thanks a lot !!!!
u helped me solved my problem..
thanks
 
Old 04-29-2007, 02:22 AM   #15
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Glad it worked.
It took me days to find out this solution. You will even find a post of mine here regarding this.
 
  


Reply

Tags
logging, mails, outgoing



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mailserver- my outgoing mail is spam ? kitek Linux - Newbie 5 04-28-2009 06:53 AM
backing going up of outgoing mails in our mailserver??? nics Linux - Server 3 04-19-2007 11:48 PM
add header information to outgoing e-mails - postfix paul_mat Linux - Networking 1 05-16-2006 05:39 AM
My Postfix mailserver can't send out mails directly! gubak Linux - Networking 4 03-28-2006 07:09 PM
outgoing mails are defered in mailq nayagam Linux - General 1 11-15-2002 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration