sonya69
asked on
Sendmail Log Incoming & Outgoing Email With Ease
Hi.
I am using RH 7.2 and I want to get a copy of outgoing and incoming emails send by using my mail server, I can give all my points if anyone let me know how to do that.
thanks.
I am using RH 7.2 and I want to get a copy of outgoing and incoming emails send by using my mail server, I can give all my points if anyone let me know how to do that.
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi sohaib.
i am not that good in sendmail .
i will appreciate ifyou just send me the binaries of that, to my sonya8732 yahoo email.
Thanks for your quick update.
i am not that good in sendmail .
i will appreciate ifyou just send me the binaries of that, to my sonya8732 yahoo email.
Thanks for your quick update.
thanks for accepting my comments and giving me A grade :) i am very happy cos thats the first time In EE I help some one , I have send you the sendmail binary and sendmail.cf
please follow the step mention in
https://www.experts-exchange.com/questions/20156737/Sendmail-Sent-Items.html
Or
/etc/rc.d/init.d/sendmail stop
Now make backups/keep copies of your original sendmail files:
mv /usr/sbin/sendmail /usr/sbin/sendmail.orig
cp /etc/sendmail.cf /etc/sendmail.cf.orig
cp /etc/sendmail.mc /etc/sendmail.mc.orig
then copy the sendmail I have sent you to /usr/sbin/sendmail, then chmod the new binary:
chmod u=rws,g=rs,o=rx /usr/sbin/sendmail
Now edit your /etc/sendmail.mc, and add the following lines at the very end:
LOCAL_CONFIG
D{LogAll}/var/log/mail.log
/var/log/mail.log is where your mail copies will be kept. Change it if you like. Remember it will be quite a big file.
Now type:
m4 < /etc/sendmail.mc >/etc/sendmail.cf
This will create a new /etc/sendmail.cf for you, with the extra line telling sendmail where to keep logged copies.
You have to create this file before sendmail will start using it.
touch /var/log/mail.log
If you don't want anyone to read it except root,
chmod 600 /var/log/mail.log
Now restart sendmail:
/etc/rc.d/init.d/sendmail start
And tell us if it works :)
please follow the step mention in
https://www.experts-exchange.com/questions/20156737/Sendmail-Sent-Items.html
Or
/etc/rc.d/init.d/sendmail stop
Now make backups/keep copies of your original sendmail files:
mv /usr/sbin/sendmail /usr/sbin/sendmail.orig
cp /etc/sendmail.cf /etc/sendmail.cf.orig
cp /etc/sendmail.mc /etc/sendmail.mc.orig
then copy the sendmail I have sent you to /usr/sbin/sendmail, then chmod the new binary:
chmod u=rws,g=rs,o=rx /usr/sbin/sendmail
Now edit your /etc/sendmail.mc, and add the following lines at the very end:
LOCAL_CONFIG
D{LogAll}/var/log/mail.log
/var/log/mail.log is where your mail copies will be kept. Change it if you like. Remember it will be quite a big file.
Now type:
m4 < /etc/sendmail.mc >/etc/sendmail.cf
This will create a new /etc/sendmail.cf for you, with the extra line telling sendmail where to keep logged copies.
You have to create this file before sendmail will start using it.
touch /var/log/mail.log
If you don't want anyone to read it except root,
chmod 600 /var/log/mail.log
Now restart sendmail:
/etc/rc.d/init.d/sendmail start
And tell us if it works :)
ASKER
Thank you very much.