Re: Sendmail not forwarding under F12
On 11/30/2009 03:52:17 PM, Sam Sharpe wrote: 2009/11/30 Geoffrey Leach ge...@hughes.net: With the installation of F12, Sendmail is no longer honoring my .forward -- nothing has changed (except the permissions, I've been hacking). Mail is delivered to /var/mail/geoff /var/log/maillog Nov 30 14:34:07 mtranch sendmail[3272]: nAUMY4Fn003272: to=geoff, ctladdr=geoff (500/500), delay=00:00:03, xdelay=00:00:03, mailer=relay, pri=30207, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nAUMY4tR003273 Message accepted for delivery) Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: forward /home/ geoff/.forward.mtranch: Permission denied Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: forward /home/ geoff/.forward: Permission denied Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: to=ge...@mtranch.mtranch.com, ctladdr=ge...@mtranch.mtranch.com (500/500), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30706, dsn=2.0.0, stat=Sent /etc/mail/sendmail.cf O DontBlameSendmail=forwardfileinunsafedirpath, forwardfileinunsafedirpathsafe ge...@mtranch[4]-ll ~/.forward -r. 1 geoff geoff 33 2009-11-30 10:36 /home/geoff/.forward Any suggestions? 1) Assuming this worked before when the permissions were like that, check for SELinux messages in /var/log/messages and /var/log/secure 2) Change the permissions - I think the sendmail user might prefer read permissions on that file and the directories above it, as I'm not sure it runs as the user (I don't play with sendmail much these days). Sam, thanks for the reply. 1) Nothing there, alas. 2) Permissions in the parent directories are drwxr-xr-x. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail not forwarding under F12
2009/11/30 Geoffrey Leach ge...@hughes.net: With the installation of F12, Sendmail is no longer honoring my .forward -- nothing has changed (except the permissions, I've been hacking). Mail is delivered to /var/mail/geoff /var/log/maillog Nov 30 14:34:07 mtranch sendmail[3272]: nAUMY4Fn003272: to=geoff, ctladdr=geoff (500/500), delay=00:00:03, xdelay=00:00:03, mailer=relay, pri=30207, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nAUMY4tR003273 Message accepted for delivery) Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: forward /home/ geoff/.forward.mtranch: Permission denied Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: forward /home/ geoff/.forward: Permission denied Nov 30 14:34:07 mtranch sendmail[3278]: nAUMY4tR003273: to=ge...@mtranch.mtranch.com, ctladdr=ge...@mtranch.mtranch.com (500/500), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30706, dsn=2.0.0, stat=Sent /etc/mail/sendmail.cf O DontBlameSendmail=forwardfileinunsafedirpath, forwardfileinunsafedirpathsafe ge...@mtranch[4]-ll ~/.forward -r. 1 geoff geoff 33 2009-11-30 10:36 /home/geoff/.forward Any suggestions? 1) Assuming this worked before when the permissions were like that, check for SELinux messages in /var/log/messages and /var/log/secure 2) Change the permissions - I think the sendmail user might prefer read permissions on that file and the directories above it, as I'm not sure it runs as the user (I don't play with sendmail much these days). -- Sam -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail delivery to local maildir?
Am Montag, den 08.06.2009, 20:30 -0400 schrieb Mail Lists: MAILDIR=/var/spool/mail/$LOGNAME DEFAULT=$MAILDIR/ Yep, that made my day. Especially because that means I can drop mail directly under my home and do not have to link or do any other workaround. Thanks a lot signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail delivery to local maildir?
Hi, thanks for the advice. It nearly worked. After making /var/spool/mail/choeger a dir (and setting group to mail, at least my old mbox was set to that group), procmail seems to store the messages in maildir format. But it does so by putting them directly under /var/spool/mail/choeger so I can only read them after moving them to cur manually. Is that my fault? signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail delivery to local maildir?
On 06/07/2009 11:54 AM, Christoph Höger wrote: Hi all, I would like to have sendmail sending all local mail to a maildir folder in my home (thats were all my IMAP mails go), so I can read _all_ my mail _everywhere_. Is it possible to convince sendmail to put my mail a) in maildir format instead of INBOX? INBOX is a place for mail not a format - you probably meant mbox format (INBOX can be in maildir format too ...) mbox is essentially deprecated and only legacy stuff (like thunderbird) holds onto mbox. I am assuming you're asking how to make yoru INBOX folder be maildir++ format as well. b) in ~/Maildir/SOMEFOLDER instead of /var/spool/mail/choeger ? Maybe simply by linking? Simply add a folder for each user you want in maildir format and it should just work. You may need to move aside your existing /var/spool/mail/choeger folder - use your mail client to move the contents to the imap server - you can put them back in your INBOX later after its in maildir format. ie shutdown sendmail - then add the maildir folders: mkdir -p /var/spool/mail/choeger/cur mkdir -p /var/spool/mail/choeger/new mkdir -p /var/spool/mail/choeger/tmp chown -R choeger.choeger /var/spool/mail/choeger now procmail will recognize this (its the deliv agent for sendmail) as maildir and automatically store it in maildir format ... dovecot (if you're using dovecot for your imap server) will need to have in dovecot.conf this line: mail_location = maildir:/var/spool/mail/%u Restart sendmail and dovecot and you should be done. Good luck. gene/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail delivery to local maildir?
On 06/07/2009 12:50 PM, Mail Lists wrote: On 06/07/2009 11:54 AM, Christoph Höger wrote: mkdir -p /var/spool/mail/choeger/cur mkdir -p /var/spool/mail/choeger/new mkdir -p /var/spool/mail/choeger/tmp chown -R choeger.choeger /var/spool/mail/choeger You also should do a chmod -R o-rwx /var/spool/mail/choeger -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail and FC9/FC10
Gregory P. Ennis wrote: On Fri, 2009-04-03 at 14:59 -0500, Gregory P. Ennis wrote: I have had some intermittent problems with sendmail transfer mail to our gateway on some FC9 and FC10 installations. I have had to create a cron job in order to force the transfer of files in /var/spool/mqueue 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sendmail -q I have TLS active on all systems. At some point in time after several updates the problem has now disappeared on all FC10 machines, but I have one FC9 machine that continues to need the cron job Has anyone else had this problem? Any ideas?s If you poke around in my posts I think you will find a note on this as part of a discussion of NM and the evils thereof. My solution was a line in rc.local: sleep 30; service sendmail reload which seems to do the similar thing. However, the problem I saw was the sendmail was starting before DNS was available. That caused delivery failures. I assume you know that you can just run sendmail as a queue daemon rather than starting it from cron. -- Bill Davidsen david...@tmr.com We have more to fear from the bungling of the incompetent than from the machinations of the wicked. - from Slashdot -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail and FC9/FC10
On Sat, 2009-04-04 at 14:02 +1030, Tim wrote: On Fri, 2009-04-03 at 18:19 -0500, Gregory P. Ennis wrote: After reviewing some of the posts on this lists it appears to me that sendmail is having trouble finding the network at start time, and unless restarted or forced to read the queue it does not transfer any mail. Yes. My approach was much simpler than your script. ;-) Any time my network status changed, sendmail restarts. Script filename: /etc/NetworkManager/dispatcher.d/sendmail Script contents: #! /bin/bash /sbin/service sendmail restart -- [...@localhost ~]$ uname -r 2.6.27.19-78.2.30.fc9.i686 Tim, You win the prize I like yours much better!!! However, it is good to know someone else had the same problem and same solution. Greg -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail and FC9/FC10
On Fri, 2009-04-03 at 14:59 -0500, Gregory P. Ennis wrote: I have had some intermittent problems with sendmail transfer mail to our gateway on some FC9 and FC10 installations. I have had to create a cron job in order to force the transfer of files in /var/spool/mqueue 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sendmail -q I have TLS active on all systems. At some point in time after several updates the problem has now disappeared on all FC10 machines, but I have one FC9 machine that continues to need the cron job Has anyone else had this problem? Any ideas?s Greg Ennis -- Greg Everyone, After reviewing some of the posts on this lists it appears to me that sendmail is having trouble finding the network at start time, and unless restarted or forced to read the queue it does not transfer any mail. I have written a little perl script to restart sendmail after it recognizes the network as being up. This has solved the problem. I do have NetworkManager running, and could not figure out a way to do this other than to restart sendmail. If you start this script in /etc/rc.d/rc.local and create the appropriate sub directory as the /var/log/smile it should at least bypass the problem with NetworkManager. Greg #!/usr/bin/perl -w # s.sendmail.check.prl.001 # # This script will check to see if a network connection exits # and is functioning # # If a network is not functioning it will wait for this to happen # and restart sendmail so that it will process the queues # # by : Gregory P. Ennis Grapevine Texas April 3, 2009 # use POSIX qw(setsid); #-- #Command Module # This should fork the process to a daemon if you use the command line defined( my $pid = fork ) or die Can't fork: $!; exit if $pid; setsid or die Can't start a new session: $!; # This should redirect standard out and standard error to log files open STDOUT, /var/log/smile/s.sendmail.check.log or die Can't write to s.sendmail.check.lp: $!; open STDERR, /var/log/smile/s.sendmail.check.error.log or die Can't write to s.sendmail.check.error.log: $!; $DATE = `date`; chomp $DATE; print Starting daemon for network checking for sendmail : $DATE\n; sleep 300; Fill_Strings; Check_Network; Restart_Sendmail; exit $ERROR; #- #- sub Fill_Strings { $NET_FLAG = 0; $NET_PRESENCE = ; $count = 0; $ERROR = 0; } sub Check_Network { while ( $NET_PRESENCE eq ) { if ( $count == 100 ) { print Unable to restart sendmail network was never active\n; $ERROR = 5; return; } if ( $count 0 ) { sleep 10; } $count++; $d_tmp=`date`; chomp $d_tmp; print Looking For Network # $count $d_tmp\n; $NET_PRESENCE=`/sbin/ifconfig eth0 | /bin/grep 'inet ' /sbin/ifconfig eth1 | /bin/grep 'inet '`; } print Network Setup : ; chomp $NET_PRESENCE; $NET_PRESENCE =~ s/^\s+//; print $NET_PRESENCE\n; $NET_FLAG++; } sub Restart_Sendmail { if ( $NET_FLAG 0 ) { $arg = `service sendmail restart`; print $arg\n; } else { print Network connection could not be established\n; } } -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail and FC9/FC10
On Fri, 2009-04-03 at 18:19 -0500, Gregory P. Ennis wrote: After reviewing some of the posts on this lists it appears to me that sendmail is having trouble finding the network at start time, and unless restarted or forced to read the queue it does not transfer any mail. Yes. My approach was much simpler than your script. ;-) Any time my network status changed, sendmail restarts. Script filename: /etc/NetworkManager/dispatcher.d/sendmail Script contents: #! /bin/bash /sbin/service sendmail restart -- [...@localhost ~]$ uname -r 2.6.27.19-78.2.30.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
Adil Drissi wrote: I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? My ISP is called eircom.net . So I uncommented and edited the line define(`SMART_HOST', `smtp.eircom.net')dnl in /etc/mail/sendmail.mc , and followed the instructions at the head of this file to give the command make -C /etc/mail. I think that is all one normally needs to do. I certainly do not want to read a book about sendmail. The file /var/log/maillog gives information (too much information) about what happens to each mail message. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
Around 01:23pm on Thursday, February 05, 2009 (UK time), Timothy Murphy scrawled: Adil Drissi wrote: I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? My ISP is called eircom.net . So I uncommented and edited the line define(`SMART_HOST', `smtp.eircom.net')dnl in /etc/mail/sendmail.mc , and followed the instructions at the head of this file to give the command make -C /etc/mail. Make sure you have sendmail-cf installed, as well as sendmail. Also restart sendmail. I certainly do not want to read a book about sendmail. No sense of fun, some people :-) However be carefull not to end up running an open mail relay. Steve -- (o www.stevesearle.com //\ Powered by Fedora V_/_No MS products were used in the creation of this message 13:32:47 up 49 days, 14:51, 1 user, load average: 0.12, 0.09, 0.06 pgpYQGzTDqCwH.pgp Description: PGP signature -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
On Thu, Feb 5, 2009 at 8:23 AM, Timothy Murphy gayle...@eircom.net wrote: My ISP is called eircom.net . So I uncommented and edited the line define(`SMART_HOST', `smtp.eircom.net')dnl in /etc/mail/sendmail.mc , and followed the instructions at the head of this file to give the command make -C /etc/mail. I think you want define(`SMART_HOST', `[smtp.eircom.net]')dnl instead. The square brackets tell sendmail *not* to look up the MX for the host -- just use the A record for the relay host. Some ISPs have a different host defined for the MX host associated with the customer relay host. -- Garry Williams +1 678 656-4579 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
,On Thursday, Feb 5th 2009 at 08:23 -, quoth Timothy Murphy: =Adil Drissi wrote: = = I have successfully installed Mysql and PHP but I am unable to send email = via php. Sendmail is already installed apparently. I want to know if there = is a way to test email by sendmail command lines. Another thing is that = how to configure sendmail because i'm just a regular customer of an = internet provider. I know the provider's mail server parameters. Can = sendmail be used with these parameters? = =My ISP is called eircom.net . =So I uncommented and edited the line =define(`SMART_HOST', `smtp.eircom.net')dnl =in /etc/mail/sendmail.mc , =and followed the instructions at the head of this file =to give the command make -C /etc/mail. = =I think that is all one normally needs to do. =I certainly do not want to read a book about sendmail. = =The file /var/log/maillog gives information (too much information) =about what happens to each mail message. I'm certainly a proponent of always looking for low-hanging fruit, but in this case, I'd have to say that running a sendmail server is certainly one of those cases where you really can't know too much and that not knowing enough is just going to cause problems. So in the spirit of offering constructive comment, here is some of the sendmail section of my library: * The Bat Book from O'Reilly. If that's all you have then you're not going far. It's really a reference book. * The Sendmail Cookbook. Excellent to have around. I wish it was twice as thick. * Linux Sendmail Administration by Craig Hunt. Very good presentation. * Sendmail Performance Tuning by Christensen. Just what it says it is. * Sendmail Milters by Costales Flynt. Once I thought I'd want to write a milter. Still do, but it got pushed down the list. * And last but not least, Sendmail Theory and Practice 2nd ed by Vixie and Avolio. This is THE book and AFAICT, the ONLY place to find out how to actually program sendmail. I'm not talking about those namby pamby m5 macros. I'm taking about the good stuff. The stuff that puts hair on your chest. The stuff that makes all those gurly men cry. R $h ! $-.$+ ! $+ $@ $3 @ $1.$2 R$* $| $* $={Tls}:$- + $+$* $: $2 $3:$4 $5 $1 R? $+ $* $- $- $* $@ $2 $5 -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
On Thu, 2009-02-05 at 18:57 -0500, Steven W. Orr wrote: ,On Thursday, Feb 5th 2009 at 08:23 -, quoth Timothy Murphy: =Adil Drissi wrote: = = I have successfully installed Mysql and PHP but I am unable to send email = via php. Sendmail is already installed apparently. I want to know if there = is a way to test email by sendmail command lines. Another thing is that = how to configure sendmail because i'm just a regular customer of an = internet provider. I know the provider's mail server parameters. Can = sendmail be used with these parameters? = =My ISP is called eircom.net . =So I uncommented and edited the line =define(`SMART_HOST', `smtp.eircom.net')dnl =in /etc/mail/sendmail.mc , =and followed the instructions at the head of this file =to give the command make -C /etc/mail. = =I think that is all one normally needs to do. =I certainly do not want to read a book about sendmail. = =The file /var/log/maillog gives information (too much information) =about what happens to each mail message. I'm certainly a proponent of always looking for low-hanging fruit, but in this case, I'd have to say that running a sendmail server is certainly one of those cases where you really can't know too much and that not knowing enough is just going to cause problems. So in the spirit of offering constructive comment, here is some of the sendmail section of my library: * The Bat Book from O'Reilly. If that's all you have then you're not going far. It's really a reference book. * The Sendmail Cookbook. Excellent to have around. I wish it was twice as thick. * Linux Sendmail Administration by Craig Hunt. Very good presentation. * Sendmail Performance Tuning by Christensen. Just what it says it is. * Sendmail Milters by Costales Flynt. Once I thought I'd want to write a milter. Still do, but it got pushed down the list. * And last but not least, Sendmail Theory and Practice 2nd ed by Vixie and Avolio. This is THE book and AFAICT, the ONLY place to find out how to actually program sendmail. I'm not talking about those namby pamby m5 macros. I'm taking about the good stuff. The stuff that puts hair on your chest. The stuff that makes all those gurly men cry. R $h ! $-.$+ ! $+ $@ $3 @ $1.$2 R$* $| $* $={Tls}:$- + $+$* $: $2 $3:$4 $5 $1 R? $+ $* $- $- $* $@ $2 $5 -- Stephen, Good Advice could not agree more!!! Greg -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
On Wed, 2009-02-04 at 01:45 -0800, Adil Drissi wrote: how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? Yes, look up how to configure smarthost. If you need help understanding the documentation, ask more questions about it. -- [...@localhost ~]$ uname -r 2.6.27.12-78.2.8.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
Adil Drissi wrote: Hi, I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. Are you running SELinux? If so, you need to turn on the ability to send email from the web server, if that is what you are trying to do. I want to know if there is a way to test email by sendmail command lines. You will have to read the Sendmail documentation. Depending on exactly what you mean by test email, there are commands to do it. But I don't run Sendmail any more, and I don't remember the exact commands. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? You can set up Sendmail to use a relay host. So what you want to do is set up your ISPs SMTP server as your relay host. I think the default sendmail.mc file has a line for this, but it is commented out. Mikkel -- Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup! signature.asc Description: OpenPGP digital signature -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
-Original Message- From: Adil Drissi adil.dri...@yahoo.com Reply-to: adil.dri...@yahoo.com, Community assistance, encouragement, and advice for using Fedora. fedora-list@redhat.com To: fedora-list@redhat.com Subject: Sendmail Date: Wed, 4 Feb 2009 01:45:41 -0800 (PST) Hi, I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? Thank you Another thing to check is if PHP is in safemode. If it is then set that option to off or configure the proper path in the config file. Hope that helps Don -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
On Wed, Feb 4, 2009 at 1:45 AM, Adil Drissi adil.dri...@yahoo.com wrote: Hi, I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? Thank you If I recall correctly, a valid SMTP server must be configured in the submit.cf file. The 127.0.01 must change to whatever the server is. # grep MTA /etc/mail/submit.cf D{MTAHost}[127.0.0.1] ~af -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Sendmail
On Wed, 2009-02-04 at 01:45 -0800, Adil Drissi wrote: Hi, I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters? Thank you Adil, In order to test an e-mail file all you have to do is use the following: cat $desired_filename | sendmail -t The file you create must have --- From: u...@domainfrom.com To: u...@domainto.com Subject: This is a test Blank Line Body of Message -- Where blank line is just a carriage return or blank line. and is not part of the data in the file Configuring sendmail ranges from very simple to way too complex to think about. You will need to purchase the BAT book Sendmail by O'Rielly. The syntax and grammar are to varied to discuss on the list, but send me an e-mail if you want some offline help. Greg Ennis -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail
On Thu, 6 Nov 2008, Amadeus W.M. wrote: I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that. msmtp is a better choice in my opinion. It's installable with yum. Here's the website, http://msmtp.sourceforge.net/ HTH, Ian -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail
On Fri, 2008-11-07 at 03:42 +, Amadeus W.M. wrote: I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that. Unless you really want to learn about sendmail or postfix, there's no need to install a full-blown MTA just to send messages upstream. I've found the foll wing useful in these circumstances: http://caspian.dotconf.net/menu/Software/SendEmail/ It's a neat little Perl script that does exactly what you want. poc -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail
Patrick O'Callaghan wrote: On Fri, 2008-11-07 at 03:42 +, Amadeus W.M. wrote: I want to be able to send email from my home computer to the outside world. I want to do that from a script, when certain events happen, so I can't use graphical clients like evolution. I have to use mail with sendmail or a replacement as postfix or qmail. Since sendmail comes by default with fedora, I thought I'd start with that. Unless you really want to learn about sendmail or postfix, there's no need to install a full-blown MTA just to send messages upstream. I've found the foll wing useful in these circumstances: http://caspian.dotconf.net/menu/Software/SendEmail/ It's a neat little Perl script that does exactly what you want. poc If you want to avoid installing more stuff, just shut off sendmail, and any other MTA stuff you have running, and edit the submit.mc or submit.cf file to add in your smart host. Looking at the SMART_HOST line you provided, just dump that in the submit file. SMTP auth is rather straightforward, but since I haven't done it in a while, here is a link for it: http://www.sendmail.org/m4/smtp_auth.html As a side note, when sending through an ISP mail relay, you need to get the Auth Details from the ISP, usually this is a webmail/account access username/password. ~Seann smime.p7s Description: S/MIME Cryptographic Signature -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail ! where to put my password
2008/10/6 Steven Stern [EMAIL PROTECTED] Adel ESSAFI wrote: Hi list I send this mail after I have find a difficulty to find how to send mails using sendmail. I have configured sendmail as shown in the web, but, I receive message error from mùy smtp server (554) saying that the authentication is failed. This is not suprising since in my configuration files, I have not found where to put the password my email. Can you help about this please. Why do you need a password? Are you using a SMART_HOST configuration, routing your outgoing mail through your provider's SMTP server? Yes, I use my ISP smtp, but it require however a password. Thanks for your reply. I will try and give a feed back for the list Regrads If so, in sendmail.mc define(`SMART_HOST', `the.provider.server.name')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587') FEATURE(`authinfo',`hash /etc/mail/authinfo')dnl in the file /etc/mail/accessinfo AuthInfo:the.provider.server.name:587 U:your.user.name P:your.password M:CRAM-MD5 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines -- PhD candidate in Computer Science Address BP 108, Bureau de poste Tunis republique 1001 Tunis Tunisia tel: +216 97 246 706 fax: +216 71 391 166 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail ! where to put my password
Hi, I still have a problem with authentication but this time, the error code is 535 instead of 540. I have followed the instruction below and just changer 587 to 25 (no ssl connection) and put this on authinfo file AuthInfo: U:adel.essafi I:adel P: M:LOGIN PLAIN Could you help please. Adel [EMAIL PROTECTED] (reason: 553 [EMAIL PROTECTED]: Sender address rejected: not logged in) - Transcript of session follows - ... while talking to smtp.gnet.tn.: AUTH dialogue 535 Error: authentication failed 2008/10/7 Adel ESSAFI [EMAIL PROTECTED] 2008/10/6 Steven Stern [EMAIL PROTECTED] Adel ESSAFI wrote: Hi list I send this mail after I have find a difficulty to find how to send mails using sendmail. I have configured sendmail as shown in the web, but, I receive message error from mùy smtp server (554) saying that the authentication is failed. This is not suprising since in my configuration files, I have not found where to put the password my email. Can you help about this please. Why do you need a password? Are you using a SMART_HOST configuration, routing your outgoing mail through your provider's SMTP server? Yes, I use my ISP smtp, but it require however a password. Thanks for your reply. I will try and give a feed back for the list Regrads If so, in sendmail.mc define(`SMART_HOST', `the.provider.server.name')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587') FEATURE(`authinfo',`hash /etc/mail/authinfo')dnl in the file /etc/mail/accessinfo AuthInfo:the.provider.server.name:587 U:your.user.name P:your.password M:CRAM-MD5 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines -- PhD candidate in Computer Science Address BP 108, Bureau de poste Tunis republique 1001 Tunis Tunisia tel: +216 97 246 706 fax: +216 71 391 166 -- PhD candidate in Computer Science Address BP 108, Bureau de poste Tunis republique 1001 Tunis Tunisia tel: +216 97 246 706 fax: +216 71 391 166 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail ! where to put my password
Adel ESSAFI wrote: Hi list I send this mail after I have find a difficulty to find how to send mails using sendmail. I have configured sendmail as shown in the web, but, I receive message error from mùy smtp server (554) saying that the authentication is failed. This is not suprising since in my configuration files, I have not found where to put the password my email. Can you help about this please. Why do you need a password? Are you using a SMART_HOST configuration, routing your outgoing mail through your provider's SMTP server? If so, in sendmail.mc define(`SMART_HOST', `the.provider.server.name')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587') FEATURE(`authinfo',`hash /etc/mail/authinfo')dnl in the file /etc/mail/accessinfo AuthInfo:the.provider.server.name:587 U:your.user.name P:your.password M:CRAM-MD5 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: sendmail not sending
Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? You might try setting sendmail up with webmin, it's much more tractable and makes sure that things are consistent. You can install webmin with 'yum install webmin' I think. Webmin uses your browser to communicate on port 1 so after installation you can surf to yourhostname.yourdomainname.your TLD:1 and log in as root. I don't recommend editing sendmail.cf or any other sendmail files manually. It's a can of worms and it's easy to break sendmail that way. John Cornelius -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
On Thu, Jul 17, 2008 at 12:25 PM, John Cornelius [EMAIL PROTECTED] wrote: Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? ..snip... I don't recommend editing sendmail.cf or any other sendmail files manually. It's a can of worms and it's easy to break sendmail that way. That's why you make a backup copy of the file, then work on it. ;-) John Cornelius -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
Aldo Foot wrote: On Thu, Jul 17, 2008 at 12:25 PM, John Cornelius [EMAIL PROTECTED] wrote: Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? ..snip... I don't recommend editing sendmail.cf or any other sendmail files manually. It's a can of worms and it's easy to break sendmail that way. That's why you make a backup copy of the file, then work on it. ;-) The file you want to edit is normally sendmail.mc which is very simple, and sendmail.cf will be rebuilt automatically when you restart the sendmail service. -- Les Mikesell [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
Aldo Foot wrote: On Thu, Jul 17, 2008 at 12:25 PM, John Cornelius [EMAIL PROTECTED] wrote: Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? ..snip... I don't recommend editing sendmail.cf or any other sendmail files manually. It's a can of worms and it's easy to break sendmail that way. That's why you make a backup copy of the file, then work on it. ;-) Actually, if you delete the .m4 files in /usr/share/sendmail-cf or delete /etc/mail/Makefile, sendmail.cf can't be buggered. The startup script for sendmail does a make using /etc/mail/Makefile (which in turn uses the .m4 files from /usr/share/sendmail-cf). However, if you're going to use sendmail instead of one of the many replacements, you really should learn how m4 works and bugger the .m4 files. I'd also recommend you buy the bat book from O'Reilly (Sendmail, Fourth Edition by Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro). Probably the definitive book on how sendmail works and how to futz with it. Don't sendmail without it! http://oreilly.com/catalog/9780596510299/ -- - Rick Stevens, Systems Engineer [EMAIL PROTECTED] - - Hosting Consulting, Inc. - -- - There are only 10 kinds of people in the world -- those who- - understand binary and those who don't - -- -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
On Wed, 16 Jul 2008, Craig White wrote: On Wed, 2008-07-16 at 16:14 -0700, Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? by default, sendmail only listens to localhost (127.0.0.1) so if you set up anything other than localhost as SMTP server in ~/.pinerc - you would have to configure /etc/mail/sendmail.mc (read the comments), then restart sendmail. I have no idea why but after 3 attempts to send a test message to myself the fourth attempt was successful (after I posted my question...of course). Thanks for your reply. -- Bob Holtzman If you think you're getting free lunch, check the price of the beer -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
On Thu, 17 Jul 2008, John Cornelius wrote: Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? You might try setting sendmail up with webmin, it's much more tractable and makes sure that things are consistent. You can install webmin with 'yum install webmin' I think. Webmin uses your browser to communicate on port 1 so after installation you can surf to yourhostname.yourdomainname.your TLD:1 and log in as root. I don't recommend editing sendmail.cf or any other sendmail files manually. It's a can of worms and it's easy to break sendmail that way. I know that the sendmail.cf is a can of worms. That's why I said short of trying to wade thru the *choke* sendmail configuration file? In any event, the problem corrected itself with no action on my part. Do I understand that? No! -- Bob Holtzman A fair fight is the result of poor planning. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail not sending
On Wed, 2008-07-16 at 16:14 -0700, Robert Holtzman wrote: Sendmail/alpine not sending mail on newly installed FC9. Incoming messages arrive O.K. The correct SMTP server is in the ~/.pinerc file. The maillog entries are *way* too cryptic for me to decipher. Any pointers short of trying to wade thru the *choke* sendmail configuration file? by default, sendmail only listens to localhost (127.0.0.1) so if you set up anything other than localhost as SMTP server in ~/.pinerc - you would have to configure /etc/mail/sendmail.mc (read the comments), then restart sendmail. Craig -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Tue, 2008-07-08 at 22:30 -0700, Antonio Olivares wrote: I have had some problems trying to update a machine with sendmail. I have applied your script but changed the ntpd service to sendmail. I have NetworkManager running, but it does not do anything. I use dialup to connect and technically do not use it. I ran the modified script with sendmail in place of ntpd and I got [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected Show us the script that you're using. But the problem's most likely down to you expecting to run stand-alone. When the network manager dispatcher runs the script, it runs it with two parameters, the name of the interface, and its status. You should do the same if running it manually. i.e. sendmail-script eth0 down [EMAIL PROTECTED] ~]# mailq /var/spool/mqueue (5 requests) -Q-ID- --Size-- -Q-Time- Sender/Recipient--- m695ImTl015224 4997 Wed Jul 9 00:18 [EMAIL PROTECTED] (Deferred: Connection timed out with beth.counter.li.org.) [EMAIL PROTECTED] m652mvBl022327* 50 Fri Jul 4 21:48 [EMAIL PROTECTED] (host map: lookup (gmail.com): deferred) [EMAIL PROTECTED] m652PGXN021917 5094 Fri Jul 4 21:25 [EMAIL PROTECTED] (host map: lookup (counter.li.org): deferred) [EMAIL PROTECTED] m652nEUF022367 5094 Fri Jul 4 21:49 [EMAIL PROTECTED] (host map: lookup (counter.li.org): deferred) [EMAIL PROTECTED] m652ikWX022255 15 Fri Jul 4 21:44 [EMAIL PROTECTED] (host map: lookup (gmail.com): deferred) [EMAIL PROTECTED] [EMAIL PROTECTED] Total requests: 5 That's exactly the sort of thing that I was seeing when sendmail wasn't able to use my network, because the network came alive *after* sendmail started up. Even logwatch mails sent to [EMAIL PROTECTED] failed. It's been quite some time since I used dialup, but it had a similar feature to the dispatcher: When the ppp connection was made, the dialup system would also run a script, if it found one, at a known location. I think the user scripts were /sbin/ifup-local /sbin/ifdown-local (for post scripts) and they'd be called by /etc/sysconfig/network-scripts/ifup-post /etc/sysconfig/network-scripts/ifdown-post. And there were /sbin/ifup-pre-local /sbin/ifdown-pre-local for doing things before the interfaces were pulled up and down. Start by reading the /sbin/ifup and /sbin/ifdown scripts, and read all the other scripts that they refer to. There's a chain of events that happen when the interfaces go up or down. -- [EMAIL PROTECTED] ~]$ uname -r 2.6.25.9-76.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
chloe K wrote: Hi all how can I resend the undeliverable from 5 days to 3 days Doesn't your sendmail retry by itself every once in a while? Mine all do, I'll occasionally get a warning email that a message couldn't be delivered for 4 hours, and later I get a reply, so I know it was delivered. I think my FC[89] sendmail is stock, save for listening on all addresses so I can get incoming mail. -- Bill Davidsen [EMAIL PROTECTED] We have more to fear from the bungling of the incompetent than from the machinations of the wicked. - from Slashdot -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
--- On Tue, 7/8/08, Tim [EMAIL PROTECTED] wrote: From: Tim [EMAIL PROTECTED] Subject: Re: sendmail To: [EMAIL PROTECTED], For users of Fedora fedora-list@redhat.com Date: Tuesday, July 8, 2008, 11:47 PM On Tue, 2008-07-08 at 22:30 -0700, Antonio Olivares wrote: I have had some problems trying to update a machine with sendmail. I have applied your script but changed the ntpd service to sendmail. I have NetworkManager running, but it does not do anything. I use dialup to connect and technically do not use it. I ran the modified script with sendmail in place of ntpd and I got [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected Show us the script that you're using. But the problem's most likely down to you expecting to run stand-alone. I'll send it later today if possible. Thank you for your advice. Regards, Antonio -- -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
--- On Tue, 7/8/08, Tim [EMAIL PROTECTED] wrote: From: Tim [EMAIL PROTECTED] Subject: Re: sendmail To: [EMAIL PROTECTED], For users of Fedora fedora-list@redhat.com Date: Tuesday, July 8, 2008, 11:47 PM On Tue, 2008-07-08 at 22:30 -0700, Antonio Olivares wrote: I have had some problems trying to update a machine with sendmail. I have applied your script but changed the ntpd service to sendmail. I have NetworkManager running, but it does not do anything. I use dialup to connect and technically do not use it. I ran the modified script with sendmail in place of ntpd and I got [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected Show us the script that you're using. But the problem's most likely down to you expecting to run stand-alone. --- [EMAIL PROTECTED] ~]$ mail Mail version 8.1 6/6/93. Type ? for help. /var/spool/mail/olivares: 1 message 1 new N 1 [EMAIL PROTECTED] Wed Jul 9 15:15 208/7413 Warning: could not se Message 1: From [EMAIL PROTECTED] Wed Jul 9 15:15:54 2008 Date: Wed, 9 Jul 2008 15:15:54 -0500 From: Mail Delivery Subsystem [EMAIL PROTECTED] To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary=m69KFshC002007.1215634554/localhost.localdomain Subject: Warning: could not send message for past 4 hours Auto-Submitted: auto-generated (warning-timeout) This is a MIME-encapsulated message --m69KFshC002007.1215634554/localhost.localdomain ** ** THIS IS A WARNING MESSAGE ONLY ** ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** ** The original message was received at Wed, 9 Jul 2008 00:18:48 -0500 from localhost.localdomain [127.0.0.1] - Transcript of session follows - 451 counter.li.org: Name server timeout Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old --m69KFshC002007.1215634554/localhost.localdomain Content-Type: message/delivery-status Reporting-MTA: dns; localhost.localdomain Arrival-Date: Wed, 9 Jul 2008 00:18:48 -0500 Final-Recipient: RFC822; [EMAIL PROTECTED] Action: delayed Status: 4.4.3 Last-Attempt-Date: Wed, 9 Jul 2008 15:15:54 -0500 Will-Retry-Until: Mon, 14 Jul 2008 00:18:48 -0500 --m69KFshC002007.1215634554/localhost.localdomain - snip removed -- --m69KFshC002007.1215634554/localhost.localdomain-- sendmail-script Description: application/shellscript -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
Antonio Olivares wrote: --- On Tue, 7/8/08, Tim [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected Show us the script that you're using. But the problem's most likely down to you expecting to run stand-alone. This is because you're running the script without any arguments. Lines 14 and 26 both test the second argument as a string, like: [ $2 == up ] Since you provided no second argument, $2 is empty and you've basically done this: [ == up ] Which causes the error. You can make the script more robust by quoting the $2 in the tests: [ $2 == up ] That will only prevent the bash error, not make the script do anything when run without the proper arguments. IIRC, NetworkManager scripts are called with 2 arguments, the interface (e.g. eth0 or wlan0) and it's status (e.g. up or down). -- ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~ Does it follow that I reject all authority? Perish the thought. In the matter of boots, I defer to the authority of the boot-maker. -- Mikhail Bakunin pgp11kxBA7eUj.pgp Description: PGP signature -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
--- On Wed, 7/9/08, Todd Zullinger [EMAIL PROTECTED] wrote: From: Todd Zullinger [EMAIL PROTECTED] Subject: Re: sendmail To: fedora-list@redhat.com Date: Wednesday, July 9, 2008, 2:06 PM Antonio Olivares wrote: --- On Tue, 7/8/08, Tim [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected Show us the script that you're using. But the problem's most likely down to you expecting to run stand-alone. This is because you're running the script without any arguments. Lines 14 and 26 both test the second argument as a string, like: [ $2 == up ] Since you provided no second argument, $2 is empty and you've basically done this: [ == up ] Which causes the error. You can make the script more robust by quoting the $2 in the tests: [ $2 == up ] That will only prevent the bash error, not make the script do anything when run without the proper arguments. IIRC, NetworkManager scripts are called with 2 arguments, the interface (e.g. eth0 or wlan0) and it's status (e.g. up or down). -- ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~ Thanks Todd, I will change the arguments. but I have NetWorkManager running, but it does not interfere with the connection. There an eth0, but there is no ethernet cable, I do not bring up the network upon boot. I start a connection with wvdial and then I end the session with CTRL+C. If I do a ifconfig -a I get something like [EMAIL PROTECTED]:~# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:40:f4:53:5a:ab BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:10 Base address:0xe000 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 B) TX bytes:100 (100.0 B) ppp0 Link encap:Point-to-Point Protocol inet addr:66.201.8.16 P-t-P:66.201.8.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:813 errors:0 dropped:0 overruns:0 frame:0 TX packets:883 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:591676 (577.8 KiB) TX bytes:167245 (163.3 KiB) [EMAIL PROTECTED]:~$ But I get different numbers when connecting. The resolv.conf file is the same all the time [EMAIL PROTECTED]:~# wvdial -- WvDial: Internet dialer version 1.60 -- Cannot get information for serial port. -- Initializing modem. -- Sending: ATZ ATZ OK -- Sending: ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 OK -- Modem initialized. -- Sending: ATDT7072000 -- Waiting for carrier. ATDT7072000 CONNECT 36000 V42bis -- Carrier detected. Starting PPP immediately. -- Starting pppd at Wed Jul 9 17:29:58 2008 -- Pid of pppd: 32433 -- Using interface ppp0 -- pppd: è[06][08][10]06][08] -- pppd: è[06][08][10]06][08] -- pppd: è[06][08][10]06][08] -- pppd: è[06][08][10]06][08] -- local IP address 66.201.8.16 -- pppd: è[06][08][10]06][08] -- remote IP address 66.201.8.6 -- pppd: è[06][08][10]06][08] -- primary DNS address 66.201.0.203 -- pppd: è[06][08][10]06][08] -- secondary DNS address 66.94.120.9 -- pppd: è[06][08][10]06][08] I thought I should turn off NetWorkManager, but since it does not interfere with connection, I left it on. In Fedora 8, I turned it off and Fedora 7 as well. On wired connections from school, I failed to update linux counter with their script even with cron job. I wondered sometimes if it was their server that was down, or fedora that refused to send the message. Thanks for helping. Regards, Antonio -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Wed, 2008-07-09 at 12:35 -0400, Bill Davidsen wrote: Doesn't your sendmail retry by itself every once in a while? Mine all do, I'll occasionally get a warning email that a message couldn't be delivered for 4 hours, and later I get a reply, so I know it was delivered. It does, but if the network interface wasn't up before sendmail started, it never recovered. At least that's the case with my Fedora 9 using Network Manager. All attempts fail until at some stage there's a network restart while sendmail is running. No amount of fiddling with the sendmail configuration aided me. -- [EMAIL PROTECTED] ~]$ uname -r 2.6.25.9-76.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Wed, 2008-07-09 at 15:42 -0700, Antonio Olivares wrote: I start a connection with wvdial and then I end the session with CTRL+C. If I recall correctly, I used to use ifup ppp and ifdown ppp, back when I was using dialup many years ago. Did you read my earlier post about pre and post scripts for ppp networking? Rather than the network manager dispatcher scripts being used, seeing as you don't use it to bring ppp up and down, use those post scripts to restart services as needed. -- [EMAIL PROTECTED] ~]$ uname -r 2.6.25.9-76.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
--- On Wed, 7/9/08, Tim [EMAIL PROTECTED] wrote: From: Tim [EMAIL PROTECTED] Subject: Re: sendmail To: [EMAIL PROTECTED], For users of Fedora fedora-list@redhat.com Date: Wednesday, July 9, 2008, 7:34 PM On Wed, 2008-07-09 at 15:42 -0700, Antonio Olivares wrote: I start a connection with wvdial and then I end the session with CTRL+C. If I recall correctly, I used to use ifup ppp and ifdown ppp, back when I was using dialup many years ago. Did you read my earlier post about pre and post scripts for ppp networking? Rather than the network manager dispatcher scripts being used, seeing as you don't use it to bring ppp up and down, use those post scripts to restart services as needed. Yes, I will give it a try. Instead of NetWorkManager, I should use if ppp up or ppp down. But in the meantime, I have successfully updated the Linux Counter page for the machine that refused to send the mail to Linux Counter. I used Yahoo/Google mail to update the machine. Regards, Antonio -- [EMAIL PROTECTED] ~]$ uname -r 2.6.25.9-76.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Mon, 2008-07-07 at 20:37 -0700, Knute Johnson wrote: My latest installation of F9 will not send mail when first started. I must restart sendmail to send any mail but after that it works fine until I restart Fedora. Are you using Network Manager? If so, I had that problem until I stopped using it. It didn't get the network up and running in time, when sendmail fires up, and sendmail never recovers. An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. -- [EMAIL PROTECTED] ~]$ uname -r 2.6.25.9-76.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
Tim wrote: On Mon, 2008-07-07 at 20:37 -0700, Knute Johnson wrote: My latest installation of F9 will not send mail when first started. I must restart sendmail to send any mail but after that it works fine until I restart Fedora. Are you using Network Manager? Yes I am. That is an alternative on my desktop but a pain for my laptop. If so, I had that problem until I stopped using it. It didn't get the network up and running in time, when sendmail fires up, and sendmail never recovers. An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Could you provide a little more detail on exactly how to do this? Thanks, -- Knute Johnson [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
Tim: An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Knute Johnson: Could you provide a little more detail on exactly how to do this? I've attached a not-so-intelligent script for restarting the NTP daemon (it starts or restarts it, but doesn't do nothing if NTPD were manually stopped beforehand). When a network interface comes up, it starts NTP if it's not already running, it restarts it if were. And when the interface goes down, it stops it. The LOGGER bit, in it, is about putting entries into /var/log/messages, as well. You could modify it to start/restart sendmail, or any other service, and modify it leave to leave the service running all the time. -- (This computer runs FC7, my others run FC4, FC5 FC6, all using Gnome in case that's important to the thread.) Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. ntpd-script Description: /etc/NetworkManager/dispatcher.d/ntpd-script -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
Tim wrote: Tim: An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Knute Johnson: Could you provide a little more detail on exactly how to do this? I've attached a not-so-intelligent script for restarting the NTP daemon (it starts or restarts it, but doesn't do nothing if NTPD were manually stopped beforehand). When a network interface comes up, it starts NTP if it's not already running, it restarts it if were. And when the interface goes down, it stops it. The LOGGER bit, in it, is about putting entries into /var/log/messages, as well. You could modify it to start/restart sendmail, or any other service, and modify it leave to leave the service running all the time. Thanks very much Tim, I'll give it a try. -- Knute Johnson [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
Tim; I may be way off base here; I am not up on things dealing with networks in general and Network Manager in particular. But ... On Wed, 2008-07-09 at 11:02 +0930, Tim wrote: Tim: An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Knute Johnson: Could you provide a little more detail on exactly how to do this? I've attached a not-so-intelligent script for restarting the NTP daemon (it starts or restarts it, but doesn't do nothing if NTPD were manually stopped beforehand). When a network interface comes up, it starts NTP if it's not already running, it restarts it if were. And when the interface goes down, it stops it. The LOGGER bit, in it, is about putting entries into /var/log/messages, as well. You could modify it to start/restart sendmail, or any other service, and modify it leave to leave the service running all the time. I think I had a similar problem with Boinc; got lots of suggestions from the list. Some of them even worked. I filed a bug against Network Manager and got the following response: Status|NEW |CLOSED Resolution||NOTABUG --- Additional Comments From [EMAIL PROTECTED] 2008-07-02 19:04 EST --- Boinc is probably starting so soon after NetworkManager that the network is not up yet. It's technically a bug in Boinc that it doesn't wait for a network connection and periodically re-try to send/grab the data. But for the moment, you can add the line: NETWORKWAIT=yes to /etc/sysconfig/network and startup will block for 10 seconds or until a network connection is up, whichever is sooner. This solution avoids the restart. Maybe this will work for sendmail as well. -- Regards Bill; Fedora 9, Gnome 2.22.2 Evo.2.22.2, Emacs 22.2.1 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
William Case wrote: Tim; I may be way off base here; I am not up on things dealing with networks in general and Network Manager in particular. But ... On Wed, 2008-07-09 at 11:02 +0930, Tim wrote: Tim: An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Knute Johnson: Could you provide a little more detail on exactly how to do this? I've attached a not-so-intelligent script for restarting the NTP daemon (it starts or restarts it, but doesn't do nothing if NTPD were manually stopped beforehand). When a network interface comes up, it starts NTP if it's not already running, it restarts it if were. And when the interface goes down, it stops it. The LOGGER bit, in it, is about putting entries into /var/log/messages, as well. You could modify it to start/restart sendmail, or any other service, and modify it leave to leave the service running all the time. I think I had a similar problem with Boinc; got lots of suggestions from the list. Some of them even worked. I filed a bug against Network Manager and got the following response: Status|NEW |CLOSED Resolution||NOTABUG --- Additional Comments From [EMAIL PROTECTED] 2008-07-02 19:04 EST --- Boinc is probably starting so soon after NetworkManager that the network is not up yet. It's technically a bug in Boinc that it doesn't wait for a network connection and periodically re-try to send/grab the data. But for the moment, you can add the line: NETWORKWAIT=yes to /etc/sysconfig/network and startup will block for 10 seconds or until a network connection is up, whichever is sooner. This solution avoids the restart. Maybe this will work for sendmail as well. Thanks very much, I'll try that one too. -- Knute Johnson [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
William Case wrote: Tim; I may be way off base here; I am not up on things dealing with networks in general and Network Manager in particular. But ... On Wed, 2008-07-09 at 11:02 +0930, Tim wrote: Tim: An alternative would be to put a restart script into the Network Manager Dispatcher directory. That way sendmail will be restarted any time the network goes down and up. A smart script would check whether it should restart a running service, or do nothing to a deliberately stopped service. Knute Johnson: Could you provide a little more detail on exactly how to do this? I've attached a not-so-intelligent script for restarting the NTP daemon (it starts or restarts it, but doesn't do nothing if NTPD were manually stopped beforehand). When a network interface comes up, it starts NTP if it's not already running, it restarts it if were. And when the interface goes down, it stops it. The LOGGER bit, in it, is about putting entries into /var/log/messages, as well. You could modify it to start/restart sendmail, or any other service, and modify it leave to leave the service running all the time. I think I had a similar problem with Boinc; got lots of suggestions from the list. Some of them even worked. I filed a bug against Network Manager and got the following response: Status|NEW |CLOSED Resolution||NOTABUG --- Additional Comments From [EMAIL PROTECTED] 2008-07-02 19:04 EST --- Boinc is probably starting so soon after NetworkManager that the network is not up yet. It's technically a bug in Boinc that it doesn't wait for a network connection and periodically re-try to send/grab the data. But for the moment, you can add the line: NETWORKWAIT=yes to /etc/sysconfig/network and startup will block for 10 seconds or until a network connection is up, whichever is sooner. This solution avoids the restart. Maybe this will work for sendmail as well. William: That worked too but on the laptop where the network will be started and stopped I think Tim's solution is going to work better for me. Thanks very much for chiming in though, I did learn something new. -- Knute Johnson [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Tue, 2008-07-08 at 22:50 -0400, William Case wrote: Boinc is probably starting so soon after NetworkManager that the network is not up yet. It's technically a bug in Boinc that it doesn't wait for a network connection and periodically re-try to send/grab the data. I'd agree with that. Likewise for other services, particularly if you have a configuration to listen to all interfaces, without specifying addresses for them. But for the moment, you can add the line: NETWORKWAIT=yes to /etc/sysconfig/network and startup will block for 10 seconds or until a network connection is up, whichever is sooner. This solution avoids the restart. Maybe this will work for sendmail as well. Though, what will happen with the various services if the network goes down and up again? (As it can.) Will they stall, will they recover automatically? A network can go down (especially if you're on dialup or wireless), and DHCP servers can change IPs on you. -- (This computer runs FC7, my others run FC4, FC5 FC6, all using Gnome in case that's important to the thread.) Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
On Tue, 2008-07-08 at 21:17 -0700, Knute Johnson wrote: That worked like a charm, thanks very much. Good to hear. Well, it seems like bugzillas should be added for sendmail and NTP that either they need to automatically recover from not having a network available when started, or they need to put restart scripts in the network manager dispatcher. Same for any other services that mismanage this. The user shouldn't have to manually go fixing a pile of services to overcome deficiencies in the default setup of the OS. -- (This computer runs FC7, my others run FC4, FC5 FC6, all using Gnome in case that's important to the thread.) Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail
--- On Tue, 7/8/08, Tim [EMAIL PROTECTED] wrote: From: Tim [EMAIL PROTECTED] Subject: Re: sendmail To: For users of Fedora fedora-list@redhat.com Date: Tuesday, July 8, 2008, 9:28 PM On Tue, 2008-07-08 at 22:50 -0400, William Case wrote: I'd agree with that. Likewise for other services, particularly if you have a configuration to listen to all interfaces, without specifying addresses for them. Though, what will happen with the various services if the network goes down and up again? (As it can.) Will they stall, will they recover automatically? A network can go down (especially if you're on dialup or wireless), and DHCP servers can change IPs on you. -- /* I apologize ahead of time, this is not a hijacking but a related problem with sendmail, if anyone feels offended, I'll start a new thread upon request */ I have had some problems trying to update a machine with sendmail. I have applied your script but changed the ntpd service to sendmail. I have NetworkManager running, but it does not do anything. I use dialup to connect and technically do not use it. I ran the modified script with sendmail in place of ntpd and I got [EMAIL PROTECTED] Documents]# ./sendmail-script ./sendmail-script: line 14: [: ==: unary operator expected ./sendmail-script: line 26: [: ==: unary operator expected I tried to edit it to find what I did wrong, but [EMAIL PROTECTED] Documents]# gedit sendmail-script [1] 15012 I could not find where or what was wrong. So I manually checked the status of sendmail and I got the following: [EMAIL PROTECTED] Documents]# service sendmail status sendmail (pid 21862) is running... sm-client (pid 21871) is running... [1]+ Donegedit sendmail-script [EMAIL PROTECTED] Documents]# service sendmail restart Shutting down sm-client: [ OK ] Shutting down sendmail:[ OK ] Starting sendmail: [ OK ] Starting sm-client:[ OK ] [EMAIL PROTECTED] Documents]# service sendmail status sendmail (pid 15092) is running... sm-client (pid 15101) is running... I now try to update the machine to linux counter and I get: [EMAIL PROTECTED] Documents]$ ./machine-update -i /bin/df: `/home/olivares/.gvfs': Transport endpoint is not connected Here you can specify some info that the script can't know for itself Your Linux Counter reg#, if any [381662]: Your machine's counter reg#, if any [382519]: This is what will be sent to the Linux Counter if you run the program with the -m switch. Now, NOTHING IS SENT snip removed to save space [EMAIL PROTECTED] Documents]$ ./machine-update -m /bin/df: `/home/olivares/.gvfs': Transport endpoint is not connected I tried the machine-update-beta script from linux counter and I got: [EMAIL PROTECTED] Documents]$ chmod +x machine-update-beta [EMAIL PROTECTED] Documents]$ ./machine-update-beta -i Can't locate Mail/Sendmail.pm in @INC (@INC contains: /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at ./machine-update-beta line 16. BEGIN failed--compilation aborted at ./machine-update-beta line 16. I have checked the queue and I got [EMAIL PROTECTED] ~]# mailq /var/spool/mqueue (5 requests) -Q-ID- --Size-- -Q-Time- Sender/Recipient--- m695ImTl015224 4997 Wed Jul 9 00:18 [EMAIL PROTECTED] (Deferred: Connection timed out with beth.counter.li.org.) [EMAIL PROTECTED] m652mvBl022327* 50 Fri Jul 4 21:48 [EMAIL PROTECTED] (host map: lookup (gmail.com): deferred) [EMAIL PROTECTED] m652PGXN021917 5094 Fri Jul 4 21:25 [EMAIL PROTECTED] (host map: lookup (counter.li.org): deferred) [EMAIL PROTECTED] m652nEUF022367 5094 Fri Jul 4 21:49 [EMAIL PROTECTED] (host map: lookup (counter.li.org): deferred) [EMAIL PROTECTED] m652ikWX022255 15 Fri Jul 4 21:44 [EMAIL PROTECTED] (host map: lookup (gmail.com): deferred) [EMAIL PROTECTED] [EMAIL PROTECTED] Total requests: 5 I tried to send sample mail to my yahoo mail(this one) and the one at gmail and the message(s) did not get through. I have known that at certain times the linux counter site is down or does not accept incoming mail
Re: sendmail
chloe K wrote: Hi all how can I resend the undeliverable from 5 days to 3 days thank you You wouldn't be having a problem where it sends mail sometimes and not others would you? My latest installation of F9 will not send mail when first started. I must restart sendmail to send any mail but after that it works fine until I restart Fedora. -- Knute Johnson [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Re: sendmail DOS (CVE-2006-1173)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam Gibson wrote: Anyone know if this is being worked on? http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1173 -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list Should be done... - -James -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEvoH/kNLDmnu1kSkRAgyTAJ90sHkp1fc0kfpUchnrByjCmUVORACeL9JA toigEC5FRcs/bDh05oGBJDk= =ofDP -END PGP SIGNATURE- -- Scanned by ClamAV - http://www.clamav.net -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
On 2006-04-10 13:45:01 +1200, Parker Jones wrote: Is the sendmail.mc replaced during the update? Should there be a backup of the old version e.g as sendmail.mc.rpmnew? I didn't find one. Why is there a sendmail.cf.rpmnew and not a sendmail.mc.rpmnew? Configuration files are silently replaced during an upgrade if they haven't been changed locally. If they have been changed, they are left alone and the new config file from the package is stored with a .rpmnew suffix[0]. So, if you have a sendmail.cf.rpmnew, but no sendmail.mc.rpmnew, it is most probably the case that you changed the sendmail.cf, but not the sendmail.mc. Maybe you just rebuilt the .cf file at one time (it contains a a line which looks like a timestamp, so it would appear to be changed even if the real content was the same). hp [0] Or sometimes, they are replaced and your file is renamed to .rpmsave. I still haven't figured out when that happens. -- _ | Peter J. Holzer| If I wanted to be academically correct, |_|_) | Sysadmin WSR | I'd be programming in Java. | | | [EMAIL PROTECTED] | I don't, and I'm not. __/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users pgpejgq3xUb35.pgp Description: PGP signature -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
On 2006-04-10 11:53:04 +0100, Brian Morrison wrote: On 10/04/2006 Peter J. Holzer wrote: That's when the config file has essential changes for the updated package to work at all, and hence must be installed. The rpmsave file is there as a hint that you need to merge your previous changes with the new format. How does RPM decide whether the changes are essential? Is there a flag in the SPEC file? It is decided by whoever writes the spec file. Hmpf. I guess that's what I deserve for asking such imprecise questions. Ok, I think I found it in /usr/share/doc/rpm-4.3.1/spec: | The %config(noreplace) indicates that the file in the package should | be installed with extension .rpmnew if there is already a modified file | with the same name on the installed machine. So, the default seems to be to replace config files, but it the packager deems an update non-essential he can mark it with noreplace. BTW, is there somewhere a complete up-to-date description of the spec file? The file above is just a what's new since some unspecified release file, and RPM to the max is now over 5 years old. hp -- _ | Peter J. Holzer| If I wanted to be academically correct, |_|_) | Sysadmin WSR | I'd be programming in Java. | | | [EMAIL PROTECTED] | I don't, and I'm not. __/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users pgpOhAgVl9R3c.pgp Description: PGP signature -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
Peter J. Holzer wrote: BTW, is there somewhere a complete up-to-date description of the spec file? The file above is just a what's new since some unspecified release file, and RPM to the max is now over 5 years old. See the documentation section on the frontpage of http://www.rpm.org/ Nils. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
On 2006-04-10 15:00:23 +0200, Nils Breunese (Lemonbit Internet) wrote: Peter J. Holzer wrote: BTW, is there somewhere a complete up-to-date description of the spec file? The file above is just a what's new since some unspecified release file, and RPM to the max is now over 5 years old. See the documentation section on the frontpage of http://www.rpm.org/ Thanks. http://fedora.redhat.com/docs/drafts/rpm-guide-en/ does indeed seem to be fairly complete and up-to-date. I remember seeing only RPM to the max and the howto there, which are both rather old (including the next version of RPM to the max). hp -- _ | Peter J. Holzer| If I wanted to be academically correct, |_|_) | Sysadmin WSR | I'd be programming in Java. | | | [EMAIL PROTECTED] | I don't, and I'm not. __/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users pgp9pHg5NAGcj.pgp Description: PGP signature -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
Just to point out some potential issues (depending on upgrade paths, etc). Some old sendmail configurations kept files in /etc/ while newer configurations keep these files in /etc/mail/ instead. A similar problem might exist for some files moved from /etc/ or /etc/mail/ to /var/run et al. These changes might cause problems? Some people might have files linked or copied in multiple places because of these changes (thinking they were providing backwards compatibility or such) and this could really cause problems. In addition, the upgrade might have moved the base mc files on old systems which would cause the sendmail.mc file not to compile. If something does a blind update of sendmail.cf from sendmail.mc without checking for errors, it could produce a broken sendmail.cf file. I've not seen any of these problems with the latest sendmail package (but I've also not tested it much) but I did see some of these issues with the first sendmail update... IMHO, almost all the problems were caused by the first package, not the second package. The problem is everyone rushed to install the first package, and the if so, the second package can't undo all the problems the first one created... -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
i did install the first package too and after restarting it gave some errors which were easily fixed by adding a few settings to the old mc file and rebuilding the cf file from it. can anybody advise me on what steps to take in order to have the second package install without to many problems? thanks! From: Eric Rostetter [EMAIL PROTECTED] Reply-To: Discussion of the Fedora Legacy Project fedora-legacy-list@redhat.com To: fedora-legacy-list@redhat.com Subject: Re: sendmail update left me in a fix Date: Mon, 10 Apr 2006 09:28:03 -0500 Just to point out some potential issues (depending on upgrade paths, etc). Some old sendmail configurations kept files in /etc/ while newer configurations keep these files in /etc/mail/ instead. A similar problem might exist for some files moved from /etc/ or /etc/mail/ to /var/run et al. These changes might cause problems? Some people might have files linked or copied in multiple places because of these changes (thinking they were providing backwards compatibility or such) and this could really cause problems. In addition, the upgrade might have moved the base mc files on old systems which would cause the sendmail.mc file not to compile. If something does a blind update of sendmail.cf from sendmail.mc without checking for errors, it could produce a broken sendmail.cf file. I've not seen any of these problems with the latest sendmail package (but I've also not tested it much) but I did see some of these issues with the first sendmail update... IMHO, almost all the problems were caused by the first package, not the second package. The problem is everyone rushed to install the first package, and the if so, the second package can't undo all the problems the first one created... -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
Quoting Parker Jones [EMAIL PROTECTED]: Problem: Sending mail failed after the update. I send locally using nmh. Restarting sendmail didn't help. Receiving appeared to be unaffected. Quick fix: After waiting several days hoping the problem would just go away, I had to do something about it. I appear to have made the problem go away by replacing sendmail.cf with its old version (prior to the sendmail update) and restarting sendmail. Looking for an explanation: I tried to reproduce the problem by restoring the sendmail.cf supplied with the update and restarting sendmail. Surprisingly I could still send - I expected it to break. This would suggest that there is something else going on that I'm not taking into consideration (rebuilding of sendmail.mc perhaps?) So I still have no satisfactory explanation of the cause of the problem. Could it perhaps be the /etc/mail/submit.cf file that was the problem? I'm not sure how nmh submits the mail (via local sendmail invocation, or via port 25, or via port 587, etc. Each could have its own problems (missing symlink, bad .cf files, etc). If sendmail.mc is compiled will the problem reappear? Try it and find out (but I doubt it). -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
Could it perhaps be the /etc/mail/submit.cf file that was the problem? I'm not sure how nmh submits the mail (via local sendmail invocation, or via port 25, or via port 587, etc. Each could have its own problems (missing symlink, bad .cf files, etc). If sendmail.mc is compiled will the problem reappear? Try it and find out (but I doubt it). Possibly interesting? submit.cf is older than submit.mc and the mc was changed recently in the first sendmail update. [EMAIL PROTECTED] root]# ls -l /usr/share/sendmail-cf/cf/submit* -r--r--r--1 root root38944 Jan 18 2004 /usr/share/sendmail-cf/cf/submit.cf -rw-r--r--1 root root 952 Mar 26 03:34 /usr/share/sendmail-cf/cf/submit.mc -rw-r--r--1 root root 802 Sep 11 2003 /usr/share/sendmail-cf/cf/submit.mc.pid _ Shop til you drop at XtraMSN Shopping http://shopping.xtramsn.co.nz/home/ -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail update left me in a fix
Quoting Parker Jones [EMAIL PROTECTED]: The 5th April sendmail update screwed up mail on my RH-7.3 box. How so? It is probably due to your having installed the earlier update actually, and not due to the current update. But in any case, if something is broken it is broken. But you never do say what it is that is broken. In /var/log/maillog I'm getting lots of these: Apr 7 01:28:17 stancomb sendmail[6702]: k36NSHhs006702: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA That message doesn't mean much of anything by itself. In fact, I see lots of these in normal operation. Now, something is no doubt causing them, but we can't tell what without more information from you. Not knowing anything about sendmail configuration this has left me in a fix. Sounds like you already got yourself out of the fix actually. But then, you never really told us what was broken. Out of urgency I reverted sendmail.cf to a version prior to the update and it now seems to work ok. That should be fine and should not cause any problems. A diff between the old and new sendmail.cf's shows several pages of changes which I can't even begin to understand. I am not sure of the implications of using the old sendmail.cf... It should work fine with the old sendmail.cf. But you should check the status of sendmail.mc also, to prevent problems in the future in case it rebuilds sendmail.cf from sendmail.mc. I appreciate the effort you guys put into packaging this code, but it's a royal pain when new problems like this are introduced. Yes. But if you want any help, you need to provide much more information, like at least what the problems where, and whether we should even bother to try to help as it sounds like you already fixed all the problems? -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Eric Rostetter napisał(a): Quoting Jancio Wodnik [EMAIL PROTECTED]: I have got latest sendmail's update on my rh73 and rh9 boxes. Issues are still the same: after update there is lack of those files: After update from which version? Were any manual changes made those files on the machine before the latest install? Did you install or upgrade the package? 1) there is no more /etc/pam.d/smtp.sendmail - but thereis /etc/pam.d/smtp.rpmnew 2) there is no more /usr/lib/sendmail.sendmail See the excellent post by David E. and see which category you fit in, and whether or not his explainations there explain your problems or not. I checked it's (c) scenario. In /etc/alternatives were broken links: mta-pam, mta-sendmail, mta-sendmailman I can confirm if you did both updates in order you have broken links on RH9, but interesting my broken links are different from what you report. My sendmail rejects incoming mail form LAN, so i must by hand fix above broken symlinks, after that and sendmail reload all goes fine. If you remove sendmail and reinstall the latest package (you should certainly backup /etc/mail before doing this) does it resolve all the problems you see? So there are still problems with the latest update, when we spoke about: problems with alternatives and sendmail. In my opinion: the latest update didn't fix that. That's all. We need more info on what you did before we can conclude that. I think the biggest problem/complaint would be that the fine details about how to apply the newest package based on previous updates was missing. It should have made mention of what would happen in the 4 different cases. best reg ... Irens --Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Quoting Jancio Wodnik [EMAIL PROTECTED]: When i remember, there was an update of sendmail in march, wait, i will grep that for you: 25 of march my system was update with sendmail-8.12.11-4.22.9.legacy and then was problem with AUTH - mail from local lan were rejected, so i greep mailing list, irc and i made: alternatives --configure mta so (when i can well remember) this command rebuild all broken symlink, in /etc/pam.d too. After that, there cam another update of sendmail, sendmail-8.12.11-4.22.10.legacy which broke again AUTH, i fix that by making necessery symbolic links by hand, i make that quickly, alternatives --config mail didn't make necessry symlinks (wired ?). Yeah, I think that all is expected behaviour for that upgrade path. Unfortunately such was not stated in the update release, and wasn't stated on the mailing list until later (in response to your mail). Saddly, but all these boxes are production servers, so i have no time to do further investigation. Understood. Sory, but i can't experiment for that, it is production box and we are planning to move to CentOS. Yes, if it is working, there is no reason to do anything. How to apply ? By yum night updates ! I would never (personally) apply automatic updates to a production server... See http://www.fedoraproject.org/wiki/AutoUpdates for full details... I'm tired, so i close this case for me and will not do further investigation. Sorry. No problem. I think the long post by David E. about the 4 upgrade paths and what happens in each path documents the path well enough for now. And since any new updates will probably skip the intermediate package, this shouldn't be a problem for anyone in the future (I hope). -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Kurt Bechstein wrote: I have a question on the recent sendmail updates. I'm referencing two urls here and they are: http://fedoranews.org/cms/node/489 http://fedoranews.org/cms/node/581 They both appear to refer to the same sendmail bug so I'm just curious if the initial packages didn't fully fix the problem or if there is something else that I'm missing here since the detail info on each url is identical. The initial release fixed the bug, but introduced packaging problems on some OS versions because they used versions of Sendmail that were too old to patch. FL provided an upgraded Sendmail, but the initial packages didn't play well with other parts of the OS (particularly the alternatives system). The new release is to fix the packaging problems. As I understand it, this only affected RH7.3, RH9, and FC1, because Fedora Core 2 and later used recent enough Sendmail versions that they could use the patch, so no major changes in the packaging spec were necessary. This is mentioned briefly in the 1. Topic section: [Updated 4th April 2006] Red Hat Linux 7.3, Red Hat Linux 9, and Fedora Core 1 packages have been updated to correct numerous problems with the previously released updates. -- Kelson Vibber SpeedGate Communications www.speed.net -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Quoting Jancio Wodnik [EMAIL PROTECTED]: Hi. but above statement is not true. There are still problem with alternatives on rh7.3 and rh9 when updated to latest sendmail update. Lates update didn't fix that. Sorry, but there is still some work to do. Regrads, Irens. Then you best report what those issues are, and how to reproduce them. -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Eric Rostetter napisał(a): Quoting Jancio Wodnik [EMAIL PROTECTED]: Hi. but above statement is not true. There are still problem with alternatives on rh7.3 and rh9 when updated to latest sendmail update. Lates update didn't fix that. Sorry, but there is still some work to do. Regrads, Irens. Then you best report what those issues are, and how to reproduce them. --Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list It's me again. I have got latest sendmail's update on my rh73 and rh9 boxes. Issues are still the same: after update there is lack of those files: 1) there is no more /etc/pam.d/smtp.sendmail - but thereis /etc/pam.d/smtp.rpmnew 2) there is no more /usr/lib/sendmail.sendmail In /etc/alternatives were broken links: mta-pam, mta-sendmail, mta-sendmailman My sendmail rejects incoming mail form LAN, so i must by hand fix above broken symlinks, after that and sendmail reload all goes fine. So there are still problems with the latest update, when we spoke about: problems with alternatives and sendmail. In my opinion: the latest update didn't fix that. That's all. best reg ... Irens -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
RE: sendmail updates
i was going to ask the same question... sort of. i installed the first sendmail fix (22.9) on a redhat 7.3 system last week without noticing any problems since. would you guys still advice me to also update to the newly updated sendmail packages(22.10) or would it be wiser not fix something that aint broke anymore or could that have consequenses for future updates. in other words, could this latest update still mess things up where they went correctly last week? From: Kurt Bechstein [EMAIL PROTECTED] Reply-To: Discussion of the Fedora Legacy Project fedora-legacy-list@redhat.com To: fedora-legacy-list@redhat.com Subject: sendmail updates Date: Wed, 05 Apr 2006 13:24:21 -0400 I have a question on the recent sendmail updates. I'm referencing two urls here and they are: http://fedoranews.org/cms/node/489 http://fedoranews.org/cms/node/581 They both appear to refer to the same sendmail bug so I'm just curious if the initial packages didn't fully fix the problem or if there is something else that I'm missing here since the detail info on each url is identical. -- Kurt Bechstein [EMAIL PROTECTED] -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
I can confirm most of this info on my RH 9 and 7.3 systems as well. For me, it was just user auth that appeared to be broken by this last package. The secure cert setup that was part of the last bad-package-fix-effort didn't show any direct errors, relaying from localhost worked fine, receiving worked fine, etc. See additional comments in-line and after below... (I apologize in advance if I am barfing obvious and useless info as most of what I know about sendmail I learned from these broken packages) ___ Alan Johnson [EMAIL PROTECTED] Jancio Wodnik wrote: It's me again. I have got latest sendmail's update on my rh73 and rh9 boxes. Issues are still the same: after update there is lack of those files: 1) there is no more /etc/pam.d/smtp.sendmail - but thereis /etc/pam.d/smtp.rpmnew Also, for me, in /etc/pam.d/, was a symlink from smtp - /etc/alternatives/mta-pam but that file did not exists. As soon as I did a I did a `cp smtp.rpmnew smtp` to fix the link (total guess), the broken auth started working again and smtp.sendmail appeared. No service restart needed. Now, prior to that I had guessed at a remake of the sendmail.cf file from my own sendmail.mc, and the alternatives command mentioned in a previous thread regarding the last bad-package, but I don't think they had anything to do with it. I don't think that because the /only/ thing I did on 2 other RH 9 boxes and one 7.3 box was the `cp smtp.rpmnew smtp` and auth started working again. 2) there is no more /usr/lib/sendmail.sendmail I also do not have this file, but I do have a symlink in that dir from sendmail - ../sbin/sendmail and in ../sbin (/usr/sbin) there is a sendmail.sendmail and another symlink from sendmail - /etc/alternatives/mta. In /etc/alternatives were broken links: mta-pam, mta-sendmail, mta-sendmailman mta-pam is not broken for me, but since mta-pam - /etc/pam.d/smtp.sendmail, and /etc/pam.d/smtp - /etc/alternatives/mta-pam - /etc/pam.d/smtp.sendmail, so when I did that `cp smtp.rpmnew smtp`, that would explain why the link is fixed and why smtp.sendmail appeared in /etc/pam.d as soon as I did the cp. The other two are also still broken, but they don't seem to impact operations of sendmail in anyway I have noticed yet: mta-sendmail - /usr/lib/sendmail.sendmail mta-sendmailman - /usr/share/man/man8/sendmail.sendmail.8.gz My sendmail rejects incoming mail form LAN, so i must by hand fix above broken symlinks, after that and sendmail reload all goes fine. As I already mentioned, I did not have to restart anything for auth to start working again, and nothing else seems to be broken. So there are still problems with the latest update, when we spoke about: problems with alternatives and sendmail. In my opinion: the latest update didn't fix that. That's all. Agreed, while the efforts are certainly greatly appreciated, nonetheless. best reg ... Irens -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail updates
Quoting Jancio Wodnik [EMAIL PROTECTED]: I have got latest sendmail's update on my rh73 and rh9 boxes. Issues are still the same: after update there is lack of those files: After update from which version? Were any manual changes made those files on the machine before the latest install? Did you install or upgrade the package? 1) there is no more /etc/pam.d/smtp.sendmail - but thereis /etc/pam.d/smtp.rpmnew 2) there is no more /usr/lib/sendmail.sendmail See the excellent post by David E. and see which category you fit in, and whether or not his explainations there explain your problems or not. In /etc/alternatives were broken links: mta-pam, mta-sendmail, mta-sendmailman I can confirm if you did both updates in order you have broken links on RH9, but interesting my broken links are different from what you report. My sendmail rejects incoming mail form LAN, so i must by hand fix above broken symlinks, after that and sendmail reload all goes fine. If you remove sendmail and reinstall the latest package (you should certainly backup /etc/mail before doing this) does it resolve all the problems you see? So there are still problems with the latest update, when we spoke about: problems with alternatives and sendmail. In my opinion: the latest update didn't fix that. That's all. We need more info on what you did before we can conclude that. I think the biggest problem/complaint would be that the fine details about how to apply the newest package based on previous updates was missing. It should have made mention of what would happen in the 4 different cases. best reg ... Irens -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On Wednesday, March 29, 2006 8:38 AM +0200 Ralph Bearpark [EMAIL PROTECTED] wrote: Hmm, that might be a clue for me. When I put in a new alias, I manually makemap hash virtusertable virtusertable.txt. If the sendmail upgrade runs a Makefile to do its own virtusertable.db rebuild then it's possible it uses other sources, or makemap dbm instead of makemap hash. That could explain the screw-up. It indeed uses /etc/mail/Makefile to rebuild maps. The first thing I do after an upgrade is to edit the Makefile to remove the at-signs on the front of the commands so that I can see what gets made. If there's interest in making this edit in the package, I can file a bugzilla and supply a patch. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On 3/29/06, Kenneth Porter [EMAIL PROTECTED] wrote: It indeed uses /etc/mail/Makefile to rebuild maps. The first thing I do after an upgrade is to edit the Makefile to remove the at-signs on the front of the commands so that I can see what gets made. If there's interest in making this edit in the package, I can file a bugzilla and supply a patch. I guess the relevant lines in /etc/mail/Makefile are: %.db: % @makemap hash $@ $ which I'm guessing means it tries to do a: makemap hash virtusertable virtusertable which would perhaps explain the screw-up I experienced since MY virtusertable sources are in virtusertable.txt rather than virtusertable. i.e. I perform makemap hash virtusertable virtusertable.txt However, I see there is a empty virtusertable file there (dates 23-Mar, now what does that mean?) and if the upgrade ran that makefile to generate virtusertable.db with the wrong virtusertable source, that certainly would explain my problems. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On Tue, 28 Mar 2006, Ralph Bearpark wrote: Do I get my config file from backup? Or re-do m4? Or await a new patch? Or what? A clear statement of advice - either here in the maillist or under advisories (http://www.fedoralegacy.org/updates/FC1/) would be very welcome/necessary. If you could test with the packages at: http://turbosphere.fedoralegacy.org/logs/fedora-1-core/69-sendmail-8.12.11-4.25.3.legacy/ , and report success/failure, it would be very helpful. If it doesn't help, you should probably do a bit of diffing to see what changed -- did .cf file change? Was it generated from Fedora Legacy or by you? What were the .mc file differences? -- Pekka Savola You each name yourselves king, yet the Netcore Oykingdom bleeds. Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On 3/28/06, Pekka Savola [EMAIL PROTECTED] wrote: On Tue, 28 Mar 2006, Ralph Bearpark wrote: Do I get my config file from backup? Or re-do m4? Or await a new patch? Or what? A clear statement of advice - either here in the maillist or under advisories (http://www.fedoralegacy.org/updates/FC1/) would be very welcome/necessary. If you could test with the packages at: http://turbosphere.fedoralegacy.org/logs/fedora-1-core/69-sendmail-8.12.11-4.25.3.legacy/ , and report success/failure, it would be very helpful. Sorry, but I was more concentrated on getting my system running again ASAP. I restored the sendmail.mc and sendmail.cf files from my backup and was surprised to find them unchanged post-patch. It seems the patch didn't actually change these config files (contrary to reports hereabouts). Then I looked into the virtusertable. I did a new makemap of the virtusertable.db and was surprised when the catch-all addresses started to work again. I am left wondering if this sendmail patch actually wiped virtusertable.db. But why would it do that? Regards, Ralph. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On 3/28/06, Ralph Bearpark [EMAIL PROTECTED] wrote: I am left wondering if this sendmail patch actually wiped virtusertable.db. I can now confirm that my virtusertable.db was somehow regenerated - erroneously - when the sendmail patch was installed. I restored the virtusertable.db from last night's backup (after the patch was installed) and I see it bears the approximate timestamp of the patch installation (see the _postpatch file below, mv-ed to make way for the new, correct virtusertable.db file). -rw-r- 1 root root 24576 Mar 28 22:04 virtusertable.db -rw-r- 1 root root 12288 Mar 27 19:07 virtusertable.db_postpatch So, why did this patch need to regenerate the virtusertable.db? And if it really did have to, then wtf did it have to do it incorrectly? As it is, I dread to think how many of my regular maillists are now halted due to the senders receiving no such user responses. Regards, Ralph. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
Ralph Bearpark wrote: So, why did this patch need to regenerate the virtusertable.db? And if it really did have to, then wtf did it have to do it incorrectly? I can't recall ever doing a sendmail upgrade (diff hosts, diff distro's, manual builds, etc) that did not rebuild sendmail dbs via the Makefile in /etc/mail/. Are you sure that your /etc/mail/virtualusertable source was up-to-date before sendmail was upgraded? -Jim P. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail Patch Breaks Virtusertable Settings
On 3/29/06, Jim Popovitch [EMAIL PROTECTED] wrote: I can't recall ever doing a sendmail upgrade (diff hosts, diff distro's, manual builds, etc) that did not rebuild sendmail dbs via the Makefile in /etc/mail/. Hmm, that might be a clue for me. When I put in a new alias, I manually makemap hash virtusertable virtusertable.txt. If the sendmail upgrade runs a Makefile to do its own virtusertable.db rebuild then it's possible it uses other sources, or makemap dbm instead of makemap hash. That could explain the screw-up. I'll check this later. Ralph. -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail stuff-up
On Monday 27 March 2006 13:31, Paul Welsh wrote: Well, I applied the latest patch to my Sendmail config and have managed to stuff it up well and truly. I am running RH9 and Sendmail 8.12.11.20060308/8.12.8. The latest patch or the rpm? If the rpm that was released, you should see sendmail-8.12.11-4.24.1.legacy. In either case you'll want to read through the bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186277 Regards, Mike Klinke -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail upgrade issues
On Sun, 2006-03-26 at 01:38 -0600, Eric Rostetter wrote: This is fixed in the package awaiting QA. I never received an email about any such package... I didn't know I had to send you one. :) Look here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186277 Marc. signature.asc Description: This is a digitally signed message part -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail upgrade issues
Quoting Marc Deslauriers [EMAIL PROTECTED]: On Sun, 2006-03-26 at 01:38 -0600, Eric Rostetter wrote: This is fixed in the package awaiting QA. I never received an email about any such package... I didn't know I had to send you one. :) I guess it is confusing to say awaiting QA since we have two forms of QA. I kind of assumed you meant it was in updates-testing, in which case there is usually an e-mail sent out. I guess you mean it is in step one though, were no e-mail is sent out... Look here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186277 Marc. -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail upgrade issues
Quoting Marc Deslauriers [EMAIL PROTECTED]: On Sun, 2006-03-26 at 01:44 -0600, Eric Rostetter wrote: Quoting Eric Rostetter [EMAIL PROTECTED]: So you have another rh9 machine that still has an old sendmail package on it? I think I might have one for immediate access. I might also have another one but I won't have access to it until probably Wednesday. Do you think you could do a rpm -Uvvv so we could get the output. If it goes wrong, we'll have something to look at. Marc. Well, sorry, I messed it up. I did: rpm -Fhvvv sendmail*.rpm | tee /tmp/sendmail.log Which gave me almost nothing... I should have done: rpm -Fhvvv sendmail*.rpm 21 | tee /tmp/sendmail.log instead. My scrollback buffer isn't big enough to catch the output completely. Later, I'll see if I can't reverse the changes and try again, but that won't be for a while... BTW, do you want me to do this with the released update or with the one proposed for QA? -- Eric Rostetter The Department of Physics The University of Texas at Austin Go Longhorns! -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: sendmail remote vulnerability
I agree, it would be nice to have an update ;) I keep running: yum -y update sendmail ;) Cheers Oliver Pekka Savola wrote: Hi, I hope FL core has had preliminary warning of the just-released sendmail remote vulnerability and if something has already been done about it, even better.. -- Oliver Schulze L. [EMAIL PROTECTED] -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list
Re: Sendmail won't send mails
On Sun, 2006-03-05 at 14:38 +, leon wrote: David Woodhouse dw...@infradead.org writes: | On Sun, 2006-03-05 at 14:17 +, leon wrote: | Here is /var/log/maillog | | Connection timed out when trying to contact any host outside cam.ac.uk. | That's hardly surprising; the UCS started filtering outgoing port 25 | from undergrad machines (and indeed any machines not explictly | permitted) about a decade ago. | | Use a smarthost -- probably smtp.hermes. | | -- | dwmw2 Very informative. Thanks. 1. Can I choose another port to workaround? 2. How to delete queue mails in /var/spool/mqueue: ? rm -rf /var/spool/mqueue/* That probably won't work, somewhere a firewall is preventing OUTBOUND connections to port 25, this is a common practice these days. What you need to do is: 1) Edit /etc/mail/sendmail.mc and uncomment line 22: dnl define(`SMART_HOST',`smtp.your.provider') by deleting dnl. Replace smtp.your.provider with the correct smarthost for your network. 2) Stop and restart sendmail (as root): /sbin/service sendmail restart All the mail in the queue should now be sent, this might take several minutes, and future emails should work as well. Keith.
Re: Sendmail won't send mails
Keith Sharp k...@passback.co.uk writes: | On Sun, 2006-03-05 at 14:38 +, leon wrote: | David Woodhouse dw...@infradead.org writes: | | | On Sun, 2006-03-05 at 14:17 +, leon wrote: | | Here is /var/log/maillog | | | | Connection timed out when trying to contact any host outside cam.ac.uk. | | That's hardly surprising; the UCS started filtering outgoing port 25 | | from undergrad machines (and indeed any machines not explictly | | permitted) about a decade ago. | | | | Use a smarthost -- probably smtp.hermes. | | | | -- | | dwmw2 | Very informative. Thanks. | | 1. Can I choose another port to workaround? | 2. How to delete queue mails in /var/spool/mqueue: | ? rm -rf /var/spool/mqueue/* | | That probably won't work, somewhere a firewall is preventing OUTBOUND | connections to port 25, this is a common practice these days. | | What you need to do is: | | 1) Edit /etc/mail/sendmail.mc and uncomment line 22: | | dnl define(`SMART_HOST',`smtp.your.provider') | | by deleting dnl. Replace smtp.your.provider with the correct | smarthost for your network. | | 2) Stop and restart sendmail (as root): | | /sbin/service sendmail restart | | All the mail in the queue should now be sent, this might take several | minutes, and future emails should work as well. | | Keith. Problem solved. Many thanks. -- Leon
Re: Sendmail won't send mails
leon wrote: David Woodhouse dw...@infradead.org writes: | On Sun, 2006-03-05 at 14:17 +, leon wrote: | Here is /var/log/maillog | | Connection timed out when trying to contact any host outside cam.ac.uk. | That's hardly surprising; the UCS started filtering outgoing port 25 | from undergrad machines (and indeed any machines not explictly | permitted) about a decade ago. | | Use a smarthost -- probably smtp.hermes. | | -- | dwmw2 Very informative. Thanks. 1. Can I choose another port to workaround? 2. How to delete queue mails in /var/spool/mqueue: ? rm -rf /var/spool/mqueue/* Thanks again. Please be aware that Fedora-devel list is a development discussion list. Your issue here is a user configuration and network support issue that would be best discussed in a user community, and is off-topic for this list. In the future, please bring your issue to communities like fedoraforum.org or fedora-list before escalating them to development groups like this or bugzilla. Thank you, Warren Togami wtog...@redhat.com
Re: Sendmail 8.12.8
Am Mo, den 06.02.2006 schrieb Will Lane um 7:52: I have a RH9 box happily chugging away running sendmail 8.12.8 for the last 2 years. It is setup under the legacy project yum and is up to date with the legacy project's patches. So my question is, is this secure? Even thought 8.12.8 is not the latest version of sendmail? Sorry for the question, i feel so naive... Will There were no major security bugs within Sendmail after that patched version you are running. The upstream Sendmail version without the severe bug is 8.12.9, but Red Hat applied the fix to the version it shipped before. Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 16:34:08 up 13:02, 16 users, 0.48, 0.28, 0.15 signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- fedora-legacy-list mailing list fedora-legacy-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-legacy-list