Sendmail and smrsh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all.

I have a slightly odd setup here, using amavisd-new to scan for virus's
and spam on one computer (so two sendmail queue's and the amavisd-new
queue). I am then using Cyrus as the mail store.

I am looking to send an email back to any one sending a mail to an email
address that does not exist in cyrus (I am using the aliases file to
create mailing lists).

So to create the response, I have created a tiny bash script, that users
formail to grab a couple of headers, and then a pre-written generic
reply.

The script looks some thing like this.

----------------------------
formail -r -t > headers.txt

cat reply_text >> headers.txt

cat headers.txt | /usr/sbin/sendmail -oi -t -f dougs_test@xxxxxxxxxxx
-----------------------------

/etc/alias file: dougs_test:     "|/etc/smrsh/formail_reply.sh"

I took an email from evolution and saved it as a plain text file, and
then tried cat test_email | smrsh -c formail_reply.sh

When I do this, an email is sent to the required address.

However, when I try sending an email to dougs_test@xxxxxxxxxxx I get the
following line in my log file.

Apr 29 10:03:32 helium sendmail[13108]: i3TA3WIP013108:
Authentication-Warning: helium.firebox.com: mail set sender to
dougs_test@xxxxxxxxxxx using -f
Apr 29 10:03:32 helium sendmail[13108]: i3TA3WIP013108:
from=dougs_test@xxxxxxxxxxx, size=0, class=0, nrcpts=0,
msgid=<200404291003.i3TA3WIP013108@xxxxxxxxxxxxxxxxxx>,
relay=mail@localhost
Apr 29 10:03:33 helium sm-mta-tx[13103]: i3TA3W3w013102:
to="|/etc/smrsh/formail_reply.sh", ctladdr=<dougs_test@xxxxxxxxxxx>
(8/0), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=30962,
dsn=2.0.0, stat=Sent


However no reply is actually received, the headers.txt file also is not
updated, so it appears the script is not being run.

Any one got any helpful suggestions?

Doug



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux