Re: Problem with sendmail update
On 02/08/2012 16:07, Mervyn Passmore wrote: We've made installed 8.14.5 and both the new and old versions seem to be installed and running according to PS. Whatever is starting sendmail is initiating the old version. If you're replacing the system sendmail with the version from ports, then you need to update /etc/mail/mailer.conf -- something like this: # $FreeBSD: stable/9/etc/mail/mailer.conf 93858 2002-04-05 04:25:14Z gshapiro $ # # Execute the real sendmail program, named /usr/local/sbin/sendmail # sendmail/usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail hoststat/usr/local/sbin/sendmail purgestat /usr/local/sbin/sendmail Also, don't confuse the version of the sendmail from the config file with the version in the binary -- both of them show up in the SMTP banner: % telnet localhost smtp Trying ::1... Connected to localhost. Escape character is '^]'. 220 smtp.infracaninophile.co.uk ESMTP Sendmail 8.14.5/8.14.5; Fri, 3 Aug 2012 09:34:40 +0100 (BST) ^ The first one is the version of the binaries, the second is the configuration version, which you can easily change by modifying the DZ8.14.5 line in sendmail.cf Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: problem with sendmail and su
At 05:44 AM 7/9/2008, Nicolas Letellier wrote: Hello. I use FreeBSD 7 with sendmail. I have a problem for sending email. More precisely, with the sender of the mail. When I'm logged to my machine in root, the mail is sent with [EMAIL PROTECTED] with sender. OK, no problems. When I'm logged to my machine in nicolas, the mail is sent with [EMAIL PROTECTED] with sender. OK, no problems. However, when I'm logged in nicolas to my machine, and if I do a su root or su - root, and I send a mail, the sender will be [EMAIL PROTECTED] and not [EMAIL PROTECTED]. It's a problem, because I done a su to be logged as root. I don't have this problem with a FreeBSD/Postfix. Thanks for your advices and helps. I don't understand this problem. Regards, -- - Nicolas. That is exactly working as designed. The reason sendmail sends the mail as your actual login user is so you cannot spoof so easily. If you have certain emails like system reports you are sending and want them sent as root, add them to roots crontab file. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem building sendmail+sasl
Robert Huff wrote: I'm trying to add SASL to sendmail (more accurately, to make it so it's done as part of the default sendmail build under -CURRENT). I have: 1) installed cyrus-sasl-2.1.20_1 2) added SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 to /etc/make,conf For what it's worth (since nobody replied yet) I've got these in make.conf (5.4-RELEASE, 5.2.1-5.3-R previously): SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS+= -L/usr/local/lib SENDMAIL_LDADD+=-lsasl2 Sorry for the luck of details, I wrote that many months ago, but it should give you a point to start. Regards, Karol -- Karol Kwiatkowski freebsd at orchid dot homeunix dot org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with sendmail
# [EMAIL PROTECTED] / 2002-10-17 07:58:48 -0400: On Thu, 17 Oct 2002, Ada Cheng wrote: On Wed, 16 Oct 2002, Dirk Meyer wrote: Ada Cheng schrieb:, I am unable to receive any email send to my box. I am running 4.6.2 with sendmail 8.12.6_1. When I try to send a test mail to another source which I then redirect back to my box I obtain the following message in Oct 16 15:56:10 infinity mail.local: setreuid(0, 1000): Operation not permitted (r=1, e=1) Please add in your sendmail.mc file: MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl mail.local is not SUID, so sendmail must start it as root. I have added the line recommended below but I am still getting a similiar error, except now I have Oct 17 05:43:38 infinity mail.local: setreuid(0, 0): Operation not permitted (r=1, e=1) I realize what my problem was. I didn't reboot the system after I rebuild sendmail. Thanks everyone!! That was pretty lame. How did you rebuilt sendmail? By issuing `make install` in /etc/mail? Do you realize the Makefile contained therein is a plaintext, commented, quite easily understandable file? If you skimmed it you would have realized adding the 'restart' target to the make command would have done just what you needed without taking down the whole box. -- If you cc me or take the list(s) out completely I'll most likely ignore your message. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Problem with sendmail
# [EMAIL PROTECTED] / 2002-10-18 10:58:13 -0400: I realize what my problem was. I didn't reboot the system after I rebuild sendmail. Thanks everyone!! That was pretty lame. No piling on! They feel foolish for missing it already. Unsportsman like conduct penalty. erm, i didn't mean to insult / poke fun at anyone. i just wrote what i felt was the best description of the action. -- If you cc me or take the list(s) out completely I'll most likely ignore your message. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Problem with sendmail
I have added the line recommended below but I am still getting a similiar error, except now I have Oct 17 05:43:38 infinity mail.local: setreuid(0, 0): Operation not permitted (r=1, e=1) So I decided to look for the file mail.local and notice the following: -r-xr-xr-x 1 bin bin 73967 Oct 16 12:28 /usr/local/libexec/mail.local I also have mail.local at /usr/libexec/ /usr/local/bin/ but those two mail.local file has ownership root and group wheel. Shouldn't all have them have ownership root and group wheel? Many thanks once again. Ada On Wed, 16 Oct 2002, Dirk Meyer wrote: Ada Cheng schrieb:, I am unable to receive any email send to my box. I am running 4.6.2 with sendmail 8.12.6_1. When I try to send a test mail to another source which I then redirect back to my box I obtain the following message in Oct 16 15:56:10 infinity mail.local: setreuid(0, 1000): Operation not permitted (r=1, e=1) Please add in your sendmail.mc file: MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl mail.local is not SUID, so sendmail must start it as root. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Problem with sendmail
I realize what my problem was. I didn't reboot the system after I rebuild sendmail. Thanks everyone!! Cheers, Ada On Thu, 17 Oct 2002, Ada Cheng wrote: I have added the line recommended below but I am still getting a similiar error, except now I have Oct 17 05:43:38 infinity mail.local: setreuid(0, 0): Operation not permitted (r=1, e=1) So I decided to look for the file mail.local and notice the following: -r-xr-xr-x 1 bin bin 73967 Oct 16 12:28 /usr/local/libexec/mail.local I also have mail.local at /usr/libexec/ /usr/local/bin/ but those two mail.local file has ownership root and group wheel. Shouldn't all have them have ownership root and group wheel? Many thanks once again. Ada On Wed, 16 Oct 2002, Dirk Meyer wrote: Ada Cheng schrieb:, I am unable to receive any email send to my box. I am running 4.6.2 with sendmail 8.12.6_1. When I try to send a test mail to another source which I then redirect back to my box I obtain the following message in Oct 16 15:56:10 infinity mail.local: setreuid(0, 1000): Operation not permitted (r=1, e=1) Please add in your sendmail.mc file: MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl mail.local is not SUID, so sendmail must start it as root. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Problem with sendmail
Ada: Reboot of the whole system is not necessary: killall -HUP sendmail should restart sendmail for you. Cheers, Barry -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Ada Cheng Sent: 17 October 2002 12:59 To: Dirk Meyer Cc: [EMAIL PROTECTED] Subject: Re: Problem with sendmail I realize what my problem was. I didn't reboot the system after I rebuild sendmail. Thanks everyone!! Cheers, Ada On Thu, 17 Oct 2002, Ada Cheng wrote: I have added the line recommended below but I am still getting a similiar error, except now I have Oct 17 05:43:38 infinity mail.local: setreuid(0, 0): Operation not permitted (r=1, e=1) So I decided to look for the file mail.local and notice the following: -r-xr-xr-x 1 bin bin 73967 Oct 16 12:28 /usr/local/libexec/mail.local I also have mail.local at /usr/libexec/ /usr/local/bin/ but those two mail.local file has ownership root and group wheel. Shouldn't all have them have ownership root and group wheel? Many thanks once again. Ada On Wed, 16 Oct 2002, Dirk Meyer wrote: Ada Cheng schrieb:, I am unable to receive any email send to my box. I am running 4.6.2 with sendmail 8.12.6_1. When I try to send a test mail to another source which I then redirect back to my box I obtain the following message in Oct 16 15:56:10 infinity mail.local: setreuid(0, 1000): Operation not permitted (r=1, e=1) Please add in your sendmail.mc file: MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl mail.local is not SUID, so sendmail must start it as root. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message