August 24, 2006

[Redhat/Fedora] Sendmail smrsh ? Forwarding email to a program

Filed under: Unix Admin — HanaDaddy @ 11:50 pm

By default, Redhat & Fedora comes with smrsh activated.
In order to forward an email to a handler program, the handler program must be in /etc/smrsh (I am not sure if link is sufficient)

Refer to /etc/mail/sendmail.mc
Below line means that smrsh is used.

FEATURE(`smrsh',`/usr/sbin/smrsh')dnl

/etc/aliases

localemail:  |/etc/smrsh/mailhandler.sh

run newaliases to update the aliases db.

Also the /etc/smrsh/mailhandler.sh should read the input from the STDIN.

[redhat/fedora] Activate Sendmail

Filed under: Unix Admin — HanaDaddy @ 11:48 pm

If you want to activate sendmail (SMTP) Server…

/etc/mail/sendmail.mc file

uncomment by adding dnl in front of below line

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
</lang>
So it becomes
<pre lang="none">
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

(more…)

August 23, 2006

[named] allowing query for only local domains

Filed under: Unix Admin — HanaDaddy @ 10:43 pm

Rule:
1. Block all query
2. Allow query for each local zone
(more…)

Page 3 of 3«123
 

43 queries. 0.357 seconds. Powered by WordPress