Sendmail masquerading breaks local mail delivery
Hello, Because of a bizarre email topology that exists at an office I have a 5.3 machine installed at, I have recently configured sendmail to masquerade the hostname of outgoing mail to drop the machine name part. This is in bert.coremedicalsolutions.com.submit.mc: divert(-1) # Comments... divert(0)dnl VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 2003/10/19 00:03:13 gshapiro Exp $') define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confDONT_INIT_GROUPS', `True')dnl define(`confBIND_OPTS', `WorkAroundBroken')dnl dnl dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] MASQUERADE_AS(coremedicalsolutions.com)dnl FEATURE(`masquerade_envelope')dnl FEATURE(`msp', `[127.0.0.1]')dnl As a result of this, though, all the periodic mails and the output from cron are now (I gather) having the local hostname stripped, and being sent off to the MX-listed mailer for the wider domain at an ISP. How do I get local mail delivered locally, while still masquerading the domain name for non-local mail? -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ pgpWvXb9rn6qy.pgp Description: PGP signature
Re: Sendmail masquerading breaks local mail delivery
On May 3, 2005, at 10:36 PM, Paul A. Hoadley wrote: This is in bert.coremedicalsolutions.com.submit.mc: I'm not convinced it's a good idea to do MASQUERADE'ing in the submit.mc, use the normal sendmail.mc file for the MTA, not the MSA. As a result of this, though, all the periodic mails and the output from cron are now (I gather) having the local hostname stripped, and being sent off to the MX-listed mailer for the wider domain at an ISP. How do I get local mail delivered locally, while still masquerading the domain name for non-local mail? Local delivery is handled by class w, and you can put hostnames for which local delivery will happen into a file as well, typically /etc/mail/local-host-names. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail masquerading breaks local mail delivery
Hi Charles, On Tue, May 03, 2005 at 10:53:55PM -0400, Charles Swiger wrote: On May 3, 2005, at 10:36 PM, Paul A. Hoadley wrote: This is in bert.coremedicalsolutions.com.submit.mc: I'm not convinced it's a good idea to do MASQUERADE'ing in the submit.mc, use the normal sendmail.mc file for the MTA, not the MSA. Every time I think I have a handle on Sendmail, I go and do something like this. Moving the masquerading to the local version of sendmail.mc was sufficient to fix the problem. Thanks. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ pgph3BexgPzKo.pgp Description: PGP signature
local mail delivery
Hi, I am wondering how should I setup a server. I have installed spamassassin, and am using fetchmail to get mail from another host. Now, I wouldn't want to install procmail. I do not understand how the mail travels: I make a ssh connection to start imapd on the target mail-host with fetchmail, to get the mail, but to whom program does fetchmail give it to? sendmail? Or does it put it directly in the mailspool? Some other program? I have spamd running, so does it know that sendmail/spool/other is getting these mails, and would know to scan them? I am running 5.1 out-of-the-box with programs installed from a recent ports-tree. Thank you in advance. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: local mail delivery
Fetchmail retrieves mail from remote mail servers and forwards it via SMTP, so it can then be read by normal mail user agents such as mutt, elm(1) or BSD Mail. It allows all your system MTA's filtering, forwarding, and aliasing facilities to work just as they would on normal mail. in short: it is fetched and inserted into your mta taken from http://www.catb.org/~esr/fetchmail/ greetings ruediger mikko wrote: Hi, I am wondering how should I setup a server. I have installed spamassassin, and am using fetchmail to get mail from another host. Now, I wouldn't want to install procmail. I do not understand how the mail travels: I make a ssh connection to start imapd on the target mail-host with fetchmail, to get the mail, but to whom program does fetchmail give it to? sendmail? Or does it put it directly in the mailspool? Some other program? I have spamd running, so does it know that sendmail/spool/other is getting these mails, and would know to scan them? I am running 5.1 out-of-the-box with programs installed from a recent ports-tree. Thank you in advance. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: local mail delivery
On Thu, Jan 22, 2004 at 06:05:09PM +0200, mikko wrote: I make a ssh connection to start imapd on the target mail-host with fetchmail, to get the mail, but to whom program does fetchmail give it to? sendmail? Or does it put it directly in the mailspool? Some other program? fetchmail(1) generally hands off the received mail to sendmail(8) for local delivery. However, you can configure it to pass the mail directly to procmail(1) or some other local delivery agent if you know that all the incoming mail is addressed to just one account. Since you don't want to use procmail(8), probably that would have to be the default delivery agent: mail.local(8) Since you're using spamd, you need some way of feeding the mail to it for scanning. That's generally done via procmail rules, but you can use a sendmail milter instead -- see the mail/spamass-milter port for example. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: local mail delivery
i made my fetchmail feed it into my exim using my local mailaddress as recipient so it will go through amavis, spamassassin and finally maildrop so it is inserted into my maildir. greetings ruediger Matthew Seaman wrote: On Thu, Jan 22, 2004 at 06:05:09PM +0200, mikko wrote: I make a ssh connection to start imapd on the target mail-host with fetchmail, to get the mail, but to whom program does fetchmail give it to? sendmail? Or does it put it directly in the mailspool? Some other program? fetchmail(1) generally hands off the received mail to sendmail(8) for local delivery. However, you can configure it to pass the mail directly to procmail(1) or some other local delivery agent if you know that all the incoming mail is addressed to just one account. Since you don't want to use procmail(8), probably that would have to be the default delivery agent: mail.local(8) Since you're using spamd, you need some way of feeding the mail to it for scanning. That's generally done via procmail rules, but you can use a sendmail milter instead -- see the mail/spamass-milter port for example. Cheers, Matthew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]