1833685 Members
3991 Online
110062 Solutions
New Discussion

Re: sendmail signature

 
SOLVED
Go to solution
Paul Sperry
Honored Contributor

sendmail signature

Does any one know of a way to append a "signature" to every e-mail in sendmail,
This is acutally going to be a disclaimer.
I looked through the sendmail.cf but didn't see anything.
Thanks and Happy Holidays.
4 REPLIES 4
John Poff
Honored Contributor

Re: sendmail signature

Hi,

I got curious and started looking at sendmail.org. I found a FAQ that briefly discusses doing signatures. It says that you can do it, but it is hard to do and unsupported. Here is a link to the FAQ:

http://www.sendmail.org/faq/section3.html#3.35

JP
W.C. Epperson
Trusted Contributor
Solution

Re: sendmail signature

You could run in queue-only mode and have a cron job append the text to each df file before sweeping the queue. But with all the mime-types and stuff out there, it's hard to say what it could mess up or whether it would be visible.

If a header is acceptable, you can define one in /etc/mail/sendmail.cf like this:

HX-Liability-Disclaimer: ABC Corp not responsible for this blather.
"I have great faith in fools; self-confidence, my friends call it." --Poe
Paul Sperry
Honored Contributor

Re: sendmail signature

Where in the sendmail.cf can you insert the header?
W.C. Epperson
Trusted Contributor

Re: sendmail signature

The "H" directive could be placed anywhere in sendmail.cf before the rulesets start. In practice, I'd put it at the end of the part where the other "H" directives are. It looks something like this:
#########################
# Format of headers #
#########################

H?P?Return-Path: <$g>
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
$.by $j ($v/$Z)$?r with $r$. id $i$?u
for $u; $|;
$.$b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $?x$x <$g>$|$g$.
H?F?From: $?x$x <$g>$|$g$.
H?x?Full-Name: $x
# HPosted-Date: $a
# H?l?Received-Date: $b
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
"I have great faith in fools; self-confidence, my friends call it." --Poe