Re: Sendmail masquerading configuration
On Sat, 19 Feb 2005 18:01, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Wednesday, February 16, 2005 2:10 AM To: Ted Mittelstaedt Cc: Ruben de Groot; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote: Ian Moore wrote: On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. Hi, Sorry, I'm still having trouble with this - my changes don't seem to have had any effect, cron is still sending mail as [EMAIL PROTECTED] (Cron Daemon) I think I've done something wrong! What I did was: #cd /usr/src/usr.sbin/cron/cron #ee config.h: and I changed the line #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ to #define MAILARGS %s [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ (I assume the # at the beginning is correct?) Yes. But, the line is incorrect - it needs to be the following: #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi See my earlier posting for this. man sendmail also will explain the flags a bit as well. The rest of the stuff is fine. Ted Thanks Ted, - I should have read more carefully. Well that sort of works - cron jobs get sent from [EMAIL PROTECTED] except for the periodic jobs, which are still sent from root@hostname.hamcoll.sa.edu.au. Perhaps periodic sends the emails itself instead of cron, though looking at it's source I can't see how. Also, I still need to adjust my sendmail config on the server that is our local smtp server. It seems to be putting the hostname back in cron's emails. Cheers, -- Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgpMM3BdU9mV8.pgp Description: PGP signature
RE: Sendmail masquerading configuration
-Original Message- From: Ian Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 1:27 AM To: freebsd-questions@freebsd.org Cc: Ted Mittelstaedt; Ruben de Groot Subject: Re: Sendmail masquerading configuration On Sat, 19 Feb 2005 18:01, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Wednesday, February 16, 2005 2:10 AM To: Ted Mittelstaedt Cc: Ruben de Groot; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote: Ian Moore wrote: On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. Hi, Sorry, I'm still having trouble with this - my changes don't seem to have had any effect, cron is still sending mail as [EMAIL PROTECTED] (Cron Daemon) I think I've done something wrong! What I did was: #cd /usr/src/usr.sbin/cron/cron #ee config.h: and I changed the line #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ to #define MAILARGS %s [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ (I assume the # at the beginning is correct?) Yes. But, the line is incorrect - it needs to be the following: #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi See my earlier posting for this. man sendmail also will explain the flags a bit as well. The rest of the stuff is fine. Ted Thanks Ted, - I should have read more carefully. Well that sort of works - cron jobs get sent from [EMAIL PROTECTED] except for the periodic jobs, which are still sent from root@hostname.hamcoll.sa.edu.au. That might be nothing more than the From: line in the e-mail. Does the actual received address show: root@hostname.hamcoll.sa.edu.au [EMAIL PROTECTED] or root@hostname.hamcoll.sa.edu.au root@hostname.hamcoll.sa.edu.au If it's the first, then your fine, it is because the periodic script is generating the From: line in the body of the e-mail message. Perhaps periodic sends the emails itself instead of cron, though looking at it's source I can't see how. Also, I still need to adjust my sendmail config on the server that is our local smtp server. It seems to be putting the hostname back in cron's emails. Some masquerading option must be set on it. Once again, check the received message to see if the real senders envelope address is getting munged, not just the From: address. Ted ___ 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 configuration
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Wednesday, February 16, 2005 2:10 AM To: Ted Mittelstaedt Cc: Ruben de Groot; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote: Ian Moore wrote: On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. Hi, Sorry, I'm still having trouble with this - my changes don't seem to have had any effect, cron is still sending mail as [EMAIL PROTECTED] (Cron Daemon) I think I've done something wrong! What I did was: #cd /usr/src/usr.sbin/cron/cron #ee config.h: and I changed the line #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ to #define MAILARGS %s [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ (I assume the # at the beginning is correct?) Yes. But, the line is incorrect - it needs to be the following: #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi See my earlier posting for this. man sendmail also will explain the flags a bit as well. The rest of the stuff is fine. Ted ___ 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 configuration
On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote: Ian Moore wrote: On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. BTW, using C{E} instead if C{E}root plus the MASQUERADE_AS macro doesn't seem to work. I didn't try the MASQUERADE_ENVELOPE macro with it though. Actually, even sending mail as my own local user on the system ends up with the hostname added in. Perhaps I'm doing something wrong. Anyway, from what you've both said, rebuilding cron sounds like a better solution. Once I've modified the source, do I just do a make install from the /usr/src/usr.sbin/cron directory? It would be better to mv the existing cron binary to cron.backup, then copy the cron binary from the build directory. No point in changing anything else, the binary is the only thing that changes. Hi, Sorry, I'm still having trouble with this - my changes don't seem to have had any effect, cron is still sending mail as [EMAIL PROTECTED] (Cron Daemon) I think I've done something wrong! What I did was: #cd /usr/src/usr.sbin/cron/cron #ee config.h: and I changed the line #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ to #define MAILARGS %s [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ (I assume the # at the beginning is correct?) then I did: /usr/src/usr.sbin/cron/cron# cd .. /usr/src/usr.sbin/cron# make === lib Warning: Object directory not changed from original /usr/src/usr.sbin/cron/lib cc -O -pipe -I/usr/src/usr.sbin/cron/lib/../cron -DLOGIN_CAP -c entry.c cc -O -pipe -I/usr/src/usr.sbin/cron/lib/../cron -DLOGIN_CAP -c env.c cc -O -pipe -I/usr/src/usr.sbin/cron/lib/../cron -DLOGIN_CAP -c misc.c building static cron library ranlib libcron.a === cron Warning: Object directory not changed from original /usr/src/usr.sbin/cron/cron cc -O -pipe -DLOGIN_CAP -c cron.c cc -O -pipe -DLOGIN_CAP -c database.c cc -O -pipe -DLOGIN_CAP -c do_command.c cc -O -pipe -DLOGIN_CAP -c job.c cc -O -pipe -DLOGIN_CAP -c user.c cc -O -pipe -DLOGIN_CAP -c popen.c cc -O -pipe -DLOGIN_CAP -o cron cron.o database.o do_command.o job.o user.o popen.o /usr/src/usr.sbin/cron/cron/../lib/libcron.a -lutil gzip -cn cron.8 cron.8.gz === crontab Warning: Object directory not changed from original /usr/src/usr.sbin/cron/crontab cc -O -pipe -I/usr/src/usr.sbin/cron/crontab/../cron -c crontab.c cc -O -pipe -I/usr/src/usr.sbin/cron/crontab/../cron -o crontab crontab.o /usr/src/usr.sbin/cron/crontab/../lib/libcron.a -lutil gzip -cn crontab.1 crontab.1.gz gzip -cn crontab.5 crontab.5.gz (Are the warnings are harmless?) Then: # /etc/rc.d/cron stop # cp /usr/src/usr.sbin/cron/cron/cron /usr/sbin # chmod 555 /usr/sbin/cron # /etc/rc.d/cron start Cheers, -- Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgpGkcNWxl2Ag.pgp Description: PGP signature
Re: Sendmail masquerading configuration
On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ruben de Groot Sent: Tuesday, February 08, 2005 4:47 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f Sorry, but this simply isn't true. I have just tested this. Warnings like this might get generated when you remove root from the TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. Your right, me bad! It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. I agree. As I said in the part of my message you snipped: BTW, I agree that masquerading is NOT the proper way to do these things. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Fine. But the OP's problem concerned mail send by cron. How would you instruct cron to use the -f flag? (There's a MAILTO environment variable in cron, but no MAILFROM) I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. BTW, using C{E} instead if C{E}root plus the MASQUERADE_AS macro doesn't seem to work. I didn't try the MASQUERADE_ENVELOPE macro with it though. Actually, even sending mail as my own local user on the system ends up with the hostname added in. Perhaps I'm doing something wrong. Anyway, from what you've both said, rebuilding cron sounds like a better solution. Once I've modified the source, do I just do a make install from the /usr/src/usr.sbin/cron directory? Cheers, -- Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgpHntFKYxYAy.pgp Description: PGP signature
RE: Sendmail masquerading configuration
Ian Moore wrote: On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ruben de Groot Sent: Tuesday, February 08, 2005 4:47 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f Sorry, but this simply isn't true. I have just tested this. Warnings like this might get generated when you remove root from the TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. Your right, me bad! It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. I agree. As I said in the part of my message you snipped: BTW, I agree that masquerading is NOT the proper way to do these things. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Fine. But the OP's problem concerned mail send by cron. How would you instruct cron to use the -f flag? (There's a MAILTO environment variable in cron, but no MAILFROM) I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted Thanks, I'll give that a go. BTW, using C{E} instead if C{E}root plus the MASQUERADE_AS macro doesn't seem to work. I didn't try the MASQUERADE_ENVELOPE macro with it though. Actually, even sending mail as my own local user on the system ends up with the hostname added in. Perhaps I'm doing something wrong. Anyway, from what you've both said, rebuilding cron sounds like a better solution. Once I've modified the source, do I just do a make install from the /usr/src/usr.sbin/cron directory? It would be better to mv the existing cron binary to cron.backup, then copy the cron binary from the build directory. No point in changing anything else, the binary is the only thing that changes. Ted ___ 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 configuration
-Original Message- From: Ruben de Groot [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:55 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Actually, I believe it's the EXPOSED_USERS macro, and it can be adjusted; e.g. in sendmail.cf: C{E}root just remove the root user from this line. In conjunction with a MASQUERADE_AS macro, this will allow root to send email coming from your domain without your hostname. If you do this then lots of messages generated by the system will suddenly start generating (at best): X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Ted ___ 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 configuration
On Tue, Feb 08, 2005 at 03:05:21AM -0800, Ted Mittelstaedt typed: -Original Message- From: Ruben de Groot [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:55 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Actually, I believe it's the EXPOSED_USERS macro, and it can be adjusted; e.g. in sendmail.cf: C{E}root just remove the root user from this line. In conjunction with a MASQUERADE_AS macro, this will allow root to send email coming from your domain without your hostname. If you do this then lots of messages generated by the system will suddenly start generating (at best): X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f Sorry, but this simply isn't true. I have just tested this. Warnings like this might get generated when you remove root from the TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. I agree. As I said in the part of my message you snipped: BTW, I agree that masquerading is NOT the proper way to do these things. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Fine. But the OP's problem concerned mail send by cron. How would you instruct cron to use the -f flag? (There's a MAILTO environment variable in cron, but no MAILFROM) Ruben ___ 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 configuration
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ruben de Groot Sent: Tuesday, February 08, 2005 4:47 AM To: Ted Mittelstaedt Cc: Ian Moore; freebsd-questions@freebsd.org Subject: Re: Sendmail masquerading configuration X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f Sorry, but this simply isn't true. I have just tested this. Warnings like this might get generated when you remove root from the TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. Your right, me bad! It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. I agree. As I said in the part of my message you snipped: BTW, I agree that masquerading is NOT the proper way to do these things. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Fine. But the OP's problem concerned mail send by cron. How would you instruct cron to use the -f flag? (There's a MAILTO environment variable in cron, but no MAILFROM) I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS %s -FCronDaemon -odi -oem -oi -t /*-*/ just change this to #define MAILARGS %s -FCronDaemon [EMAIL PROTECTED] -odi -oem -oi -t /*-*/ Ted ___ 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 configuration
On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Actually, I believe it's the EXPOSED_USERS macro, and it can be adjusted; e.g. in sendmail.cf: C{E}root just remove the root user from this line. In conjunction with a MASQUERADE_AS macro, this will allow root to send email coming from your domain without your hostname. You might want to use the MASQUERADE_ENVELOPE macro as well, 'cause that's probably what your isp is filtering on (the envelope_from address). Read all about it in /usr/share/sendmail/cf/README. BTW, I agree that masquerading is NOT the proper way to do these things. Ruben Masquerading is a bullshit way of doing this kind of thing anyhow. Use the -f switch if your calling the sendmail binary directly from programs. If your using /bin/mail as a MUA, then get a better one like Elm or Pine that lets you do this. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sendmail masquerading configuration
Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. I need to do this because our smart host mail server (over which I have no control) rejects mail from our domain if it has a hostname in it. Since my server is in a VPN, I forward root's mail to my own account on the 'smart host' server to make it accessible from outside the VPN. I think that the masquerading settings have changed somewhat since I last did this. I read http://www.sendmail.org/m4/masquerading.html, it suggests MASQUERADE_AS(`host.domain') but when I tried that, it didn't work. I believe it used to be just a matter of adding Dmfoo.bar to sendmail.cf restart sendmail, but that doesn't work. I have commented out the C{E}root line so that doesn't override the Dm setting for root. Sorry this OT, I did try to find somewhere else to ask this question, but the newsgroup listed on the sendmail site doesn't seem to exist (according to my news reader) so I'm asking here instead. Cheers, -- Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgp8N5V6qQPzd.pgp Description: PGP signature
RE: Sendmail masquerading configuration
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. Masquerading is a bullshit way of doing this kind of thing anyhow. Use the -f switch if your calling the sendmail binary directly from programs. If your using /bin/mail as a MUA, then get a better one like Elm or Pine that lets you do this. Ted ___ 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 configuration
On Sun, 6 Feb 2005 20:58, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Moore Sent: Sunday, February 06, 2005 2:07 AM To: freebsd-questions@freebsd.org Subject: Sendmail masquerading configuration Hi, I'm hoping someone can help me with this. I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. Not possible, I think, as I recall masquerading only works on users not in the T macro. (ie: Trusted Users) root is most definitely in this macro. I guess even if I redirect root's mail to another user forward that to my account on the ISP's server, it wouldn't work for the same reason. Masquerading is a bullshit way of doing this kind of thing anyhow. Use the -f switch if your calling the sendmail binary directly from programs. If your using /bin/mail as a MUA, then get a better one like Elm or Pine that lets you do this. It's mail from cron, periodic etc. that I want to redirect to my work email account, so i can tell if my server is still alive when I'm on holidays. This wasn't a problem until a few days ago when our ISP started blocking mail with a hostname attached. Cheers, -- Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc pgpH60brefiAZ.pgp Description: PGP signature
Re: Sendmail masquerading configuration
On Sun, 6 Feb 2005, Ian Moore wrote: I want to make sendmail (on a 5.3-Release server) leave the host name out of the sender address when sending mail from that machine. I.E. mail from root currently has a sender address of [EMAIL PROTECTED], I want it to be [EMAIL PROTECTED] instead. [snip] I think that the masquerading settings have changed somewhat since I last did this. I read http://www.sendmail.org/m4/masquerading.html, it suggests MASQUERADE_AS(`host.domain') but when I tried that, it didn't work. Adding MASQUERADE_DOMAIN(`myhost.foo.bar') to your .mc may be helpful. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]