Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-06-2005, 09:28 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 22

Rep: Reputation: 15
(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:
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.


Last edited by fhd; 01-09-2005 at 06:07 PM.
Old 01-09-2005, 06:05 PM   #2
LQ Newbie
Registered: Jan 2005
Posts: 22

Original Poster
Rep: Reputation: 15
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. (

Last edited by fhd; 01-09-2005 at 06:06 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Sendmail Aliases: forward mail to script mikeshn Linux - Software 2 07-03-2010 08:22 PM
Sendmail & remote e-mail WorldBuilder Linux - Networking 4 08-29-2004 09:18 PM
mail & sendmail problems alaios Linux - Networking 1 12-07-2003 06:07 PM
sendmail & /etc/mail/aliases adam_boz Linux - Software 5 09-27-2002 12:31 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:44 AM.

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