LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases (http://www.linuxquestions.org/questions/linux-networking-3/sendmail-not-possible-to-pipe-mail-to-programs-using-%7E-forward-and-and-etc-mail-aliases-274839/)

fhd 01-06-2005 09:28 PM

(solved) sendmail: ... pipe mail to programs using ~/.forward && /etc/mail/aliases
 
Hello, I have a problem concerning my sendmail server; I have problems when piping mail to other programs, this is an example:
Code:

fhd@paron-02 ~ $ cat ~/.forward
"|/usr/bin/cat > /home/fhd/test_email"
fhd@paron-02 ~ $ ls /home/fhd/test_email
ls: /home/fhd/test_email: No such file or directory
fhd@paron-02 ~ $ echo "testing" | mail -s "" -c "" fhd
fhd@paron-02 ~ $ ls /home/fhd/test_email
ls: /home/fhd/test_email: No such file or directory

As you can see, it does not work. It also doesn't work when I write this to the /etc/mail/aliases file, the piping is just ignored, while forwarding to users and files works perfectly.

I really don't know which configuration file this issue could be related to, if you want to see any, please tell me and I will edit this post afterwards.

tia

fhd 01-09-2005 06:05 PM

well, I tried around further, and while I did, I found out that smrsh was activated, wich makes this question answereable with "rtfm".

For those of you who don't know what srshm is; it defines programs you may pipe mail through for security reasons. It's also available for other mailservers.

I don't know much about it, but on most systems you should find the directory /usr/adm/sm.bin/ , where you can place symlinks for programs you want to use for piping.

You can read more about it in the sendmail faq. (http://www.sendmail.org/faq)


All times are GMT -5. The time now is 09:34 AM.