f



sendmail VERP ruleset

Hi folks,

I've been using sendmail + mlmmj with VERP support and I thought it
might be
useful sharing the information about my setup. I'd appreciate any
corrections/
comments about this setup.

This information is also available at

http://dev.gentoo.org/~lcars/misc/sendmail-hacks.txt


------------------------------------------------------------------------------


The following configuration enables VERP
(http://cr.yp.to/proto/verp.txt) which
is useful for mailing list managers that are able to take advantage of
that
feature.

This configuration is currently used for using the mlmmj manager
(http://mlmmj.mmj.dk) with VERP enabled + sendmail.

The hack consists in hooking VERP rewriting in a replacement ruleset
for the
existing EnvFromSMTP one (called VerpEnvFromSMTP). This is going to
work *only* if we are splitting messages with multiple recipients in
separate queue
files since the macro we are using for the rewriting ($u) is not set
when
multiple rcpt are present.

The first step consists in forcing envelope splitting, this is done
using the
QUEUE_GROUP feature, here we are definining r=1 (max 1 rcpt per
message) for the default queue group:


QUEUE_GROUP(`mqueue', `P=/var/spool/mqueue, F=f, I=1m,  R=2, r=1')


Since we are going to split a lot it's advisable to use the FAST_SPLIT
option,
additionally we need to enforce return-path inclusion in the local
mailer:


define(`confFAST_SPLIT', `100')dnl
define(`LOCAL_SHELL_FLAGS', `eu9P')dnl


Then we define a regex map for matching the addresses that we are going
to
rewrite, in our example we'll rewrite addresses like

<listname+bounces-123@domain.net>

with

<listname+bounces-123-user=foo.net@domain.net>

where user@foo.net is the recipient address of the message. So we need
to apply our verp ruleset *only* to those addresses. Additionally we
are also adding the Delivered-To header:


LOCAL_CONFIG
Kmatch_verp regex -m -a@VERP
(listname\+bounces\-[0-9]+<@domain\.net\.?>)
H?l?Delivered-To: $u

Here's the ruleset, the first half of the ruleset is the existing
EnvFromSMTP
ruleset present in default sendmail.cf, the seconf half is the VERP
stuff:


SVerpEnvFromSMTP
R$+                     $: $>PseudoToReal $1
sender/recipient common

R$* :; <@>              $@                              list:; special
case
R$*                     $: $>MasqSMTP $1                qualify
unqual'ed names
R$+                     $: $>MasqEnv $1                 do masquerading


#
R $*                                  $: $(match_verp $1 $)
# rewrite it using $u macro and add VERP string for failsafe
R $* + $* < @ $* . > $* @VERP         $: $1 + $2 - $&u < @ $3 . > $4
VERP
# if $u wasn't defined rewrite the address back
R $* - < @ $* . > $* VERP             $: $1 < @ $2 . > $3
# replace the "@" in rcpt address with "="
R $* - < $+ @ $+ > < @ $* . > $* VERP $: $(dequote $1 "-" $2 "=" $3 $)
<@$4.>$5
R $* - $+ @ $+ < @ $* . > $* VERP     $: $(dequote $1 "-" $2 "=" $3 $)
<@$4.>$5


Finally we need to rewrite the mailer definition for the used mailer
(typically esmtp) specifying VerpEnvFromSMTP as the sender rewrite
ruleset:


MAILER_DEFINITIONS
Mesmtp,         P=[IPC], F=mDFMuXa, S=VerpEnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP
                E=\r\n, L=990, T=DNS/RFC822/SMTP,
                A=TCP $h



NOTE: for mailing list servers it's also a good idea keeping existing
Delivered-To headers, sendmail needs the following patch for doing
this:


--- sendmail/conf.c.orig        2004-07-14 21:54:23.000000000 +0000
+++ sendmail/conf.c     2004-12-06 15:22:05.000000000 +0000
@@ -117,6 +117,7 @@
        { "content-length",             H_ACHECK,               NULL
},
        { "subject",                    H_ENCODABLE,            NULL
},
        { "x-authentication-warning",   H_FORCE,                NULL
},
+       { "delivered-to",           H_FORCE,            NULL    },

        { NULL,                         0,                      NULL
}
 };


-- lcars@gentoo.org

0
lcars.net (2)
3/18/2005 7:44:27 AM
comp.mail.sendmail 13518 articles. 1 followers. jfretby (35) is leader. Post Follow

0 Replies
2226 Views

Similar Articles

[PageSpeed] 58

Reply:

Similar Artilces:

sendmail.sendmail?
I'm setting up a newly configured server from the hosting provider, and the sendmail file is in /usr/lib/sendmail.sendmail I'm not sure why sendmail.sendmail is repeating. Is there some configuration remaining or do I just need to rename the file to sendmail? Thanks Dan DeLion <noemail@northpole.nowhere> wrote: > I'm setting up a newly configured server from the hosting provider, and the > sendmail file is in > /usr/lib/sendmail.sendmail > I'm not sure why sendmail.sendmail is repeating. Is there some > configuration remaining or do I just need t...

Sending mail without sendmail or highly secure sendmail
Hello all, I am setting up a very secure Red Hat Enterprise Linux Advanced Server version 4 update 6 server. My sendmail version is 8.13.1. My mail server is a Windows 2003 Server with Exchange 2003 with its patches. They are both on the same subnet. DNS is on and it will resolve the mail server's name and IP. SSH, SCP, SFTP, and such tools are the only networkable protocols on. NFS if off, MOUNTD is off, PORTMAP is off, and such. Until just recently sendmail was off on the RHEL server as part of the hardening procedure. However part of the auditing requirements is for a mail messag...

sendmail patch overwrites /etc/mail/sendmail.cf
Beware: just installed patch 122857-02 (would be 122856 on SPARC) on my machine. Why does this patch overwrite my (custom) /etc/mail/sendmail.cf? This file is marked in the /var/sadm/install/contents database as "e" so should be left alone during patch installation. At least a notice in the patch README would have been nice, but this file just contains useless NOTEs most of the time. Better leave the sendmail.cf alone if it has been changed from the installed one (can be simply checked with the checksum in /var/sadm/install/contents) -- Daniel On Fri, 28 Apr 2006, Daniel Rock...

too many sendmail 8.12.11 sendmail and mail.local processes
I noticed over 7000 sendmail and mail.local processes that eventually exhausted the system's swap space. The system is a Solaris 8 box running sendmail 8.12.11. Also, sendmail.cf has MaxDaemonChildren=500 set. The problem occurred after the system received over 60,000 large email due to a misbehaved application. 1. Why would there be more than 500 sendmail processes? I noticed the parent process for most of the sendmail processes is 1 and mail.local were spawned by sendmail, of course. I have the default MaxQueueChildren value which is unlimited. I noted over 7,000 o...

unable to forward mail from 1 sendmail server to another sendmail server
Hi, i have a setup like this: box A ---> box B ---> sends to the world. sendmail, solaris 9. what is happening is as follows: Application on box A generates mail (for the users, who can be from anywhere) forwards it to box B which sends it out. The box A is forwarding mail to box B, only for the users of the domain, ie if there is a user is having a gmail id the mail is NOT forwarded from box A ----> box B. If i do a nslookup on gmail on box A it resolves properly. XXXXXX Message 2: >From MAILER-DAEMON Wed Oct 26 12:14:26 2005 Date: Wed, 26 Oct 2005 12:14:26 +0530 (IST) Fro...

Sendmail 8.14.3 not sendmail hugely attached e-mail files in a timely manner
What could be the problem. They seem stuck and I have to run sendmail -v -q manually just to get them to propogate. Any reason why? -- Member - Liberal International This is doctor@nl2k.ab.ca Ici doctor@nl2k.ab.ca God, Queen and country! Beware Anti-Christ rising! Never Satan President Republic! If you cannot lead a family how can you pastor a church? The Doctor unleashed the infinite monkeys on 21/05/2009 00:07 producing: > What could be the problem. > > They seem stuck and I have to run sendmail -v -q manually just > to get them to propogate. > > Any reason why? With so little information, it's impossible to help you. How do you define "huge"? How long do you wait? What's in your mail logs? -- Rob MacGregor (BOFH) Rule 37: "There is no 'overkill'. There is only 'open fire' and 'I need to reload.'" ...

sendmail ignores sendmail.cf
If i do a 'sendmail -C /etc/mail/sendmail.cf <adress>' everything works fine, but just using 'sendmail <adress>' seems to ignore sendmail.cf? There is even nothing like open(sendmail.cf) if i do an strace about this. See for yourself, this is like it expect it: nebula root # sendmail -C /etc/mail/sendmail.cf -v jan tescht .. jan... Connecting to mail.doubleslash.de. via relay... .... but this not: nebula root # sendmail -v jan tescht .. jan... Connecting to [127.0.0.1] via relay... jan... Deferred: Connection refused by [127.0.0.1] Jan Schubert wrote: > If...

sendmail and cyrus
until now i have a mailserver (based on SuSE 8.2) that delivers incoming mail to /var/spool/mail and users get it via pop3/qpopper. now i want imap access and installed cyrus. cyrus seems to work, (windows-) clients can access it and create new mailboxes. but incoming mail does not appear there. it still goes to /var/spool/mail. how should this work if it worked? does cyrus fetch the mail from /var/spool/mail or must sendmail deliver it straight to cyrus? cyrus documentation does not loose a word over sendmail and vice versa. what piece of configuration is missing here? does anyone know how ...

Sendmail/Sendmail Processes Hanging
Hi there, I have a problem with my RedHat 7.2 (2.4.18-26.7.x kernel) box and sendmail. We have recently been finding many many stuck sendmail processes where seemingly the first process freezes and all later ones then start but fail to log or complete in any way. We were running an old (8.11) version of sendmail so I have upgraded from source to the latest 8.13.6 and replaced the binary and config files ok. The new version runs fine and all seems to work. But... the problem continues. I have attached a copy of the relevant parts of a ps and netstat etc... below. I thought this might ...

sendmail sendmail[12024]: [ID 801593 mail.crit] k560CUvG012024: SYSERR(root): collect: read timeout on connection from ???????, ???????
Does anyone else get this error messages. What does this mean?? What can I do to fix this? sendmail sendmail[12024]: [ID 801593 mail.crit] k560CUvG012024: SYSERR(root): collect: read timeout on connection from ??????, ???? OS Solaris 10 Sendmail 8.13.6 Thanks Jeff spellman.jeff@gmail.com wrote: > Does anyone else get this error messages. What does this mean?? > What can I do to fix this? > sendmail sendmail[12024]: [ID 801593 mail.crit] k560CUvG012024: > SYSERR(root): collect: read timeout on connection from ??????, ???? > > OS Solaris 10 > Sendmail 8.13.6 &...

Mail::Sendmail
perl doesn't like my return address. Does anyone know why? error message as follows-------------------- [rudi@tsuse rudi]$ perl mail_test.pl [rudi@tsuse rudi]$ Bad or missing From address: '' text of program follows---------------------- [rudi@tsuse rudi]$ vi mail_test.pl 1 #!/usr/bin/perl; 2 use Mail::Sendmail; 3 4 %mail = { To => "ccc31807\@yahoo.com", 5 From => "cartercc\@gmail.com", 6 Subject => 'Test of sendmail', 7 Message => "This is a test of sendmail"}; 8 9...

[Sendmail] Strange sendmail log...
Hello. I ran linux web+sendmail server for years. Recently i was noticed that my server appointed as spam mail sending black list. When i look into my sendmail log, it was surprising. Some Brizilian spammers are sending massive spam mail via my box. I think there was some hole in user name "apache". Now i'm changed username apache --> apache2, but it is same. Sendmail Version = starting daemon (8.13.4): SMTP+queueing@01:00:00 ---- sendmail log. Jun 3 18:50:47 node sendmail[16954]: j539ojU6016954: from=<>, size=4982, class=0, nrcpts=1, msgid=<20050603141608.BD...

sendmail.cf and sendmail.mc
A simple question: is there a way to include parts of sendmail.cf in sendmail.mc? Thank you. Marco Verago. Marco Verago schrieb: > A simple question: is there a way to include parts of sendmail.cf in > sendmail.mc? Not a simple question at all, as I can't for the life of it imagine what you are actually wanting to achieve. sendmail.cf is generated from sendmail.mc, so you seem to be creating a sort of circular dependency here. Tilman Schmidt <t.schmidt@phoenixsoftware.de> writes: > Marco Verago schrieb: > > > A simple question: is there a way to include parts...

Sendmail Exception reached when thousands emails sent in bulk mail script. Has sendmail a email-sent limit for a given process?
Hello, I have explained here my issue: http://serverfault.com/questions/484812/sendmail-exception-reached-when-thousands-emails-sent-in-bulk-mail-script-has-s/484814?noredirect=1#comment540576_484814 Thanks in advance! enicolas.riquelme@gmail.com wrote: > Hello, > > I have explained here my issue: http://serverfault.com/questions/484812/sendmail-exception-reached-when-thousands-emails-sent-in-bulk-mail-script-has-s/484814?noredirect=1#comment540576_484814 > > Thanks in advance! > It would be more convenient for (future) readers of (an archive of) this newsg...

sendmail
I'm having trouble configuring sendmail. The OS is redhat 9. I'm not new to linux. I'm trying to use the PHP function mail() and it only sends the mail message to the root user instead of the intended recipient. I want it to be forwarded to an exchange 5.5 box (our mail server). Any help? Any good links to sites that might help me? I haven't found what i'm looking for at sendmail.org. Thanks in advance to any help. jedge wrote: > I'm having trouble configuring sendmail. The OS is redhat 9. I'm not > new to linux. I'm trying to use the PHP funct...

Sendmail
Just one theoretycal question, is there any program or some option that would force sendmail to pickup mail with some kind of POP connector from the other server, like it works on MS Exchange??? On Sun, 23 May 2004 16:35:24 +0200, John <anonymous@anonymous.com> wrote: > Just one theoretycal question, is there any program or some option that > would force sendmail to pickup mail with some kind of POP connector from the > other server, like it works on MS Exchange??? Sendmail sends mails, it doesn't fetch mail. You can use fetchmail for that :) Wkr, Sven Vermeule...

Sendmail
Can any one help me setting up my mail server. I have 3 different domains i want to set that up in one m/c. Help What M/C are you Planning on Using - Outlook Express, Outlook Etc. Kevin bhavingsi@yahoo.com (Bhavin) wrote in message news:<49df75f0.0407150718.21c23a7e@posting.google.com>... > Can any one help me setting up my mail server. I have 3 different > domains i want to set that up in one m/c. > > Help ...

Sendmail
I have the 7.0 version of Sendmail installed and working okay sending mail to addresses within our qualchoice.com domain but cannot send anywhere else. Get the following error message Name server: yahoo: host name lookup failure when trying to send to my yahoo.com address. As far as I know all the configuration is pretty much the defaults. Any Sendmail gurus know what I have to do to get this working? TIA. John Bawden QualChoice __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com * To joi...

sendmail
In FreeBSD 4.10, what are the necessary steps to set up sendmail? I am on a stand-alone computer, connected to the net via adsl. All I want is to use elm or similar to send off email to my remote smtp server. Thanks / JB danube wrote: > > In FreeBSD 4.10, what are the necessary steps to set up sendmail? I > am on a stand-alone computer, connected to the net via adsl. All I > want is to use elm or similar to send off email to my remote smtp > server. > > Thanks / JB Hi: Normally, I don't like it when I see responses of the type RTFM. However, in this case, you are asking for something much larger than would be reasonable to provide on a news group. The handbook has an entire section on sendmail. If you are not sure how to find the handbook, look on the freebsd site under documentation. Cheers JE -- The opinions expressed are mine alone. My employer would crap if it were known what I write here. > In FreeBSD 4.10, what are the necessary steps to set up sendmail? I am on > a stand-alone computer, connected to the net via adsl. All I want is to > use elm or similar to send off email to my remote smtp server. This article of mine might be interesting for you: http://home.leo.org/~barner/freebsd/articles/mailsetup/article.html Simon On Sat, 05 Feb 2005 19:41:05 +0000, Simon Barner wrote: >> In FreeBSD 4.10, what are the necessary steps to set up sendmail? I am >> on a stand-alon...

Sendmail
Hi! all, Need some help to setup sendmail in a D390 server running HP-UX 10.20. Have never done this any help will be appreciated. Thanks Raj news.verizon.net <rajesh.ghosh@verizon.net> wrote: > > Need some help to setup sendmail in a D390 server running HP-UX 10.20. Have > never done this any help will be appreciated. Can you specify your problem? Have you read the instruction on sendmail.org? If not there a lot jobless consultants... :) Regards Frank -- The great thing on multitasking is that several thing can go wrong at one. news.verizon.net <rajesh.ghosh@veri...

sendmail
Hi, i search an option where i can setup the following method. if a mass email sending run, the sendmail sould only send 3 emails to the same domain at the same time. you know? is that possible? thanks for help -- Mit freundlichen Gr��en Christian Schmidt Webmaster Homeatwork.de - SMS & Vertrieb, Marketing und Entwicklung mail: webmaster@homeatwork.de fon: +49 (0) 170 82 65 443 fon: +49 (0) 3628 58 56 8 2 url: http://www.homeatwork.de Christian Schmidt wrote: > i search an option where i can setup the following method. > if a mass email sending run, the sendmail sould only sen...

sendmail
Is there a way to add hyperlinks to the body of an email message using the sendmail function? I am using Microsoft Outlook. ...

Sendmail
How does sendmail work? I have tried chmod g-w / and restarted the machine, but I still get errors. I get this when I type: sendmail I get: sendmail: warning: valid_hostname: numeric hostname: 65.51.224.223 How should my hosts file in /etc/hosts should look? I have the following: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost I have Mac OS X 10.3 Cylurian wrote: > How does sendmail work? I have tried chmod g-w / and restarted the > machine, but I still get errors. I get this when I type: sendmail I > get: > > sendmail: warning: vali...

SendMail
Hello Hopefully a quick one. I am utilising SENDMAIL within RedHat Enterprise, and most of my stes are ok. however, i have one site who's MAIL Service provider says i must send authentication parameters before allowing the mail to be sent directly to their SMTP server. Where is the USER and PASSWORD profile assigned, as this does not appeat to be present in sendmail.cf thanks John ...

Web resources about - sendmail VERP ruleset - comp.mail.sendmail

Open Source - Sendmail.com
Sendmail partners include a host of leading companies who share a proven track record of developing and delivering complimentary email products ...

Sendmail - Wikipedia, the free encyclopedia
This article is about the mail transfer agent. For the company, see Sendmail, Inc. . Sendmail is a general purpose internetwork email routing ...

Companies mobilize to patch Sendmail
... has security experts and software companies moving quickly to convince customers to apply a patch. A critical vulnerability in Sendmail, the ...

Sendmail hit by data interception flaw
Internet security researchers have discovered a serious flaw in versions of the widely-used Sendmail open-source e-mail software. The flaw could ...

Sendmail Adds Calendaring, Scheduling
E-mail server software developer Sendmail Inc. is branching out into groupware with the addition of its Calendar Server.


Sendmail Launches 'Rogue Email Application Control' Appliance
Sendmail this week announced the release of the Sentrion Rogue Email Application Control (REAC) appliance, a new offering designed to address ...

Another vulnerability found in Sendmail
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners . You can withdraw ...

Sendmail Hit by Data Interception Flaw - Slashdot
FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD ...

Email Offline At the Home of Sendmail 179
... "The UC Berkeley email system has been either offline, or only providing limited access, for more than a week. How can the place where sendmail ...

Resources last updated: 3/5/2016 8:38:13 PM