|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a domain xyz.com. When I attempt to send users of this domain
e-mail amy@xyz.com, joe@xyz.com, mark@xyz.com, each user will receive the message multiple times. As an example, if I sent amy@xyz, joe@xyz and mark@xyz, each user would receive the message 3 times (one for each user name). (see sendmail.mc below) Ubuntu Linux server 6.10. I have attempted multiple things to prevent this, but have only made a mess of the sendmail file. I am hoping that someone here can resolve this issue. Thanks. -- Begin sendmail.mc (comments stripped) divert(-1)dnl divert(0)dnl define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/cf/m4/cf.m4')dnl VERSIONID(`$Id: sendmail.mc, v 8.13.8-2 2006-09-30 07:18:48 cowboy Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= FEATURE(`no_default_msa')dnl define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqr un,restrictexpand,nobodyreturn ,authwarnings')dnl FEATURE(`access_db', , `hash -o /etc/mail/access.db')dnl FEATURE(`greet_pause', `1000')dnl 1 seconds FEATURE(`delay_checks', `friend', `n')dnl define(`confBAD_RCPT_THROTTLE',`3')dnl FEATURE(`conncontrol', `nodelay', `terminate')dnl FEATURE(`ratecontrol', `nodelay', `terminate')dnl include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl define(`confAUTH_OPTIONS', `A')dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`always_add_domain')dnl MASQUERADE_AS(`xyz.com')dnl MASQUERADE_DOMAIN(`xyz.com')dnl MASQUERADE_DOMAIN(`localhost')dnl MASQUERADE_DOMAIN(`server.localdomain')dnl MASQUERADE_DOMAIN(`server')dnl FEATURE(`allmasquerade')dnl define(`SMART_HOST', `[smtp.provider.com]')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl FEATURE(`domaintable')dnl FEATURE(redirect)dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl define(`LOCAL_MAILER_FLAGS', `ShPfn')dnl define(`LOCAL_MAILER_ARGS', `procmail -m $h $g $u')dnl FEATURE(local_procmail)dnl FEATURE(`blacklist_recipients')dnl FEATURE(`authinfo', `hash -o /etc/mail/authinfo.db')dnl FEATURE(accept_unqualified_senders)dnl FEATURE(accept_unresolvable_domains)dnl FEATURE(relay_hosts_only)dnl FEATURE(relay_entire_domain)dnl define(`confTO_IDENT',`0s')dnl define(`confREJECT_MSG', `550 Access denied')dnl MODIFY_MAILER_FLAGS(`LOCAL', `-m')dnl MAILER_DEFINITIONS MAILER(`procmail')dnl MAILER(`smtp')dnl Cwxyz.com -- End sendmail.mc |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1179764132.106028.225930@y2g2000prf.googlegroups. com>
neo65536@gmail.com writes: >I have a domain xyz.com. When I attempt to send users of this domain >e-mail amy@xyz.com, joe@xyz.com, mark@xyz.com, each user will receive >the message multiple times. As an example, if I sent amy@xyz, joe@xyz >and mark@xyz, each user would receive the message 3 times (one for >each user name). Sendmail won't do that... >define(`LOCAL_MAILER_ARGS', `procmail -m $h $g $u')dnl This is a very strange definition - what are you trying to achieve with that? Seems like maybe you're trying to do some sort of "virtual domains" with procmail and botching it. --Per Hedeland per@hedeland.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On May 21, 3:08 pm, p...@hedeland.org (Per Hedeland) wrote:
> Sendmail won't do that... Oh. Maybe I should have been searching procmail then. I could not find any issue under sendmail. > >define(`LOCAL_MAILER_ARGS', `procmail -m $h $g $u')dnl > > This is a very strange definition - what are you trying to achieve with > that? Seems like maybe you're trying to do some sort of "virtual > domains" with procmail and botching it. Quite possible at this point. What would you suggest as a default? I do have two domains being serviced, but amy@xyz.com is the same as amy@abc.com. Thanks Per! |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
In article <1179781551.619250.280040@b40g2000prd.googlegroups .com>
neo65536@gmail.com writes: >On May 21, 3:08 pm, p...@hedeland.org (Per Hedeland) wrote: >> Sendmail won't do that... > >Oh. Maybe I should have been searching procmail then. I could not >find any issue under sendmail. > >> >define(`LOCAL_MAILER_ARGS', `procmail -m $h $g $u')dnl >> >> This is a very strange definition - what are you trying to achieve with >> that? Seems like maybe you're trying to do some sort of "virtual >> domains" with procmail and botching it. > >Quite possible at this point. What would you suggest as a default? The suggested default is of course what you get if you don't put in a define for LOCAL_MAILER_ARGS at all - you already had FEATURE(local_procmail) which will use procmail as LDA. However the above definition suggests that you (are supposed to) have some mailertable entries and custom procmailrcs to do "something", this will break then - hence the question above. If you don't know what you're doing, it's difficult to give advice...:-) Hm, actually I see now that you have FEATURE(local_procmail) *after* the LOCAL_MAILER_* defines, it will override them, so thye're irrelevant. Maybe you should just take out everything that you don't know why you have there? In any case, procmailrc rules that try to resend the message based on the header contents can certainly cause the problem you're seeing. > I >do have two domains being serviced, but amy@xyz.com is the same as >amy@abc.com. The standard way to handle that (assuming 'amy' and everyone else are local OS accounts) is just to put both domains in class {w}, normally via the local-host-names file. Cw entries in your .mc (you have one for xyz.com) will do the same, but they should really be in a LOCAL_CONFIG section. --Per Hedeland per@hedeland.org |
|
![]() |
| Outils de la discussion | |
|
|