From gshobowale at nextworksltd.com Tue Apr 13 11:03:24 2010 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Tue, 13 Apr 2010 12:03:24 +0100 Subject: mail issues when link is lost Message-ID: <004501cadaf9$0360d530$0a227f90$@com> Hello, Could you help me out with this. I have a mail server which uses sendmail , however we relay all our mail to our ISP to save bandwidth as this traffic is free with our ISP. However, when the link fails we realize that we can send mails locally but not externally. Is there a way to configure sendmail to retain the mails on the mail server and send when the link is available. Right now the mails remain on the client machine and are not delivered to the server until the link is back up, well except for the local domain. Thanks. Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at carltm.com Tue Apr 13 11:45:49 2010 From: carl at carltm.com (Carl T. Miller) Date: Tue, 13 Apr 2010 07:45:49 -0400 Subject: mail issues when link is lost In-Reply-To: <004501cadaf9$0360d530$0a227f90$@com> References: <004501cadaf9$0360d530$0a227f90$@com> Message-ID: <7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> Oluwagbenga Shobowale wrote: > Could you help me out with this. I have a mail server which uses sendmail, > however we relay all our mail to our ISP to save bandwidth as this traffic > is free with our ISP. However, when the link fails we realize that we can > send mails locally but not externally. Is there a way to configure > sendmail > to retain the mails on the mail server and send when the link is > available. > Right now the mails remain on the client machine and are not delivered to > the server until the link is back up, well except for the local domain. If I understand this, you have a mail server using your ISP's mail server as its smarthost. However, your client machine is not configured to use a smarthost. I would suggest that you configure your client machine to use your mail server as a smarthost, since that will make it easier to troubleshoot problems and will give you one point where all outbound email is queued when your connections is down. c From gshobowale at nextworksltd.com Wed Apr 14 06:04:18 2010 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Wed, 14 Apr 2010 06:04:18 +0000 Subject: mail issues when link is lost In-Reply-To: <7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> References: <004501cadaf9$0360d530$0a227f90$@com><7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> Message-ID: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> Thanks, but all the clients are windows and point to the local mail server not the ISP. Yes I am using the ISP server as a smart host. My point is I have configure the outlook to point to the local mail server 192.168.0.1 When mails are sent from the clients it gets delivered to both external and internal mails as long as the internet link is up. If now only local domain mails get delivered. External mails at that point don't leave the clients. Thanks Sent from my BlackBerry? smartphone from Zain Nigeria -----Original Message----- From: "Carl T. Miller" Date: Tue, 13 Apr 2010 07:45:49 To: Subject: Re: mail issues when link is lost Oluwagbenga Shobowale wrote: > Could you help me out with this. I have a mail server which uses sendmail, > however we relay all our mail to our ISP to save bandwidth as this traffic > is free with our ISP. However, when the link fails we realize that we can > send mails locally but not externally. Is there a way to configure > sendmail > to retain the mails on the mail server and send when the link is > available. > Right now the mails remain on the client machine and are not delivered to > the server until the link is back up, well except for the local domain. If I understand this, you have a mail server using your ISP's mail server as its smarthost. However, your client machine is not configured to use a smarthost. I would suggest that you configure your client machine to use your mail server as a smarthost, since that will make it easier to troubleshoot problems and will give you one point where all outbound email is queued when your connections is down. c -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From carl at carltm.com Wed Apr 14 10:49:19 2010 From: carl at carltm.com (Carl T. Miller) Date: Wed, 14 Apr 2010 06:49:19 -0400 Subject: mail issues when link is lost In-Reply-To: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145- @bda006.bisx.produk.on.blackberry> References: <004501cadaf9$0360d530$0a227f90$@com><7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> Message-ID: <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> Okay, so you have one mail server which is running sendmail and it is configured to use your ISP's smarthost. By default sendmail will queue messages for up to 5 days and will keep trying to deliver them every 4 hours. Unless you have reconfigured something, it should "just work." What files have you updated in the /etc/mail directory? Can you let us know what has been changed? c Oluwagbenga Shobowale wrote: > Thanks, but all the clients are windows and point to the local mail server > not the ISP. Yes I am using the ISP server as a smart host. > My point is I have configure the outlook to point to the local mail server > 192.168.0.1 > When mails are sent from the clients it gets delivered to both external > and internal mails as long as the internet link is up. If now only local > domain mails get delivered. External mails at that point don't leave the > clients. > Thanks > Sent from my BlackBerry? smartphone from Zain Nigeria > > -----Original Message----- > From: "Carl T. Miller" > Date: Tue, 13 Apr 2010 07:45:49 > To: > Subject: Re: mail issues when link is lost > > Oluwagbenga Shobowale wrote: >> Could you help me out with this. I have a mail server which uses >> sendmail, >> however we relay all our mail to our ISP to save bandwidth as this >> traffic >> is free with our ISP. However, when the link fails we realize that we >> can >> send mails locally but not externally. Is there a way to configure >> sendmail >> to retain the mails on the mail server and send when the link is >> available. >> Right now the mails remain on the client machine and are not delivered >> to >> the server until the link is back up, well except for the local domain. > > If I understand this, you have a mail server using your ISP's > mail server as its smarthost. However, your client machine > is not configured to use a smarthost. I would suggest that > you configure your client machine to use your mail server as > a smarthost, since that will make it easier to troubleshoot > problems and will give you one point where all outbound email > is queued when your connections is down. > > c > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From sbathe at gmail.com Wed Apr 14 15:01:53 2010 From: sbathe at gmail.com (Saurabh Bathe) Date: Wed, 14 Apr 2010 20:31:53 +0530 Subject: mail issues when link is lost In-Reply-To: <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> References: <004501cadaf9$0360d530$0a227f90$@com> <7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> Message-ID: Are the clients configured to use you SMTP server to send out emails or ISPs mail server? And what does maillog on your SMTP server says for those requests that do not leave the clients mailbox ? /Saurabh On Wed, Apr 14, 2010 at 4:19 PM, Carl T. Miller wrote: > Okay, so you have one mail server which is running sendmail > and it is configured to use your ISP's smarthost. ?By default > sendmail will queue messages for up to 5 days and will keep > trying to deliver them every 4 hours. ?Unless you have > reconfigured something, it should "just work." > > What files have you updated in the /etc/mail directory? > Can you let us know what has been changed? > > c > > > Oluwagbenga Shobowale wrote: >> Thanks, but all the clients are windows and point to the local mail server >> not the ISP. Yes I am using the ISP server as a smart host. >> My point is I have configure the outlook to point to the local mail server >> 192.168.0.1 >> When mails are sent from the clients it gets delivered to both external >> and internal mails as long as the internet link is up. If now only local >> domain mails get delivered. External mails at that point don't leave the >> clients. >> Thanks >> Sent from my BlackBerry? smartphone from Zain Nigeria >> >> -----Original Message----- >> From: "Carl T. Miller" >> Date: Tue, 13 Apr 2010 07:45:49 >> To: >> Subject: Re: mail ?issues when link is lost >> >> Oluwagbenga Shobowale wrote: >>> Could you help me out with this. I have a mail server which uses >>> sendmail, >>> however we relay all our mail to our ISP to save bandwidth as this >>> traffic >>> is free with our ISP. However, when the link fails we realize that we >>> can >>> send mails locally but not externally. Is there a way to configure >>> sendmail >>> to retain ?the mails on the mail server and send when the link is >>> available. >>> Right now the mails remain on the client machine and are not delivered >>> to >>> the server until the link is back up, well except for the local domain. >> >> If I understand this, you have a mail server using your ISP's >> mail server as its smarthost. ?However, your client machine >> is not configured to use a smarthost. ?I would suggest that >> you configure your client machine to use your mail server as >> a smarthost, since that will make it easier to troubleshoot >> problems and will give you one point where all outbound email >> is queued when your connections is down. >> >> c >> >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- --- Thanks Saurabh Bathe +91 9422785635 From pbdlists at pinboard.com Wed Apr 14 17:31:52 2010 From: pbdlists at pinboard.com (pbdlists at pinboard.com) Date: Wed, 14 Apr 2010 19:31:52 +0200 Subject: mail issues when link is lost In-Reply-To: <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> References: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> Message-ID: <20100414173152.GA13658@pinboard.com> If the internet link is down, DNS resolving for external domains probably won't work either. If sendmail is configured to only accept mail for 'existing' (speak resolvable) domains, this could cause such an issue. The log files of sendmail (/var/log/maillog) should give you home hint. Cheers, Kurt On Wed, Apr 14, 2010 at 06:49:19AM -0400, Carl T. Miller wrote: > Okay, so you have one mail server which is running sendmail > and it is configured to use your ISP's smarthost. By default > sendmail will queue messages for up to 5 days and will keep > trying to deliver them every 4 hours. Unless you have > reconfigured something, it should "just work." > > What files have you updated in the /etc/mail directory? > Can you let us know what has been changed? > > c > > > Oluwagbenga Shobowale wrote: > > Thanks, but all the clients are windows and point to the local mail server > > not the ISP. Yes I am using the ISP server as a smart host. > > My point is I have configure the outlook to point to the local mail server > > 192.168.0.1 > > When mails are sent from the clients it gets delivered to both external > > and internal mails as long as the internet link is up. If now only local > > domain mails get delivered. External mails at that point don't leave the > > clients. > > Thanks > > Sent from my BlackBerry? smartphone from Zain Nigeria > > > > -----Original Message----- > > From: "Carl T. Miller" > > Date: Tue, 13 Apr 2010 07:45:49 > > To: > > Subject: Re: mail issues when link is lost > > > > Oluwagbenga Shobowale wrote: > >> Could you help me out with this. I have a mail server which uses > >> sendmail, > >> however we relay all our mail to our ISP to save bandwidth as this > >> traffic > >> is free with our ISP. However, when the link fails we realize that we > >> can > >> send mails locally but not externally. Is there a way to configure > >> sendmail > >> to retain the mails on the mail server and send when the link is > >> available. > >> Right now the mails remain on the client machine and are not delivered > >> to > >> the server until the link is back up, well except for the local domain. > > > > If I understand this, you have a mail server using your ISP's > > mail server as its smarthost. However, your client machine > > is not configured to use a smarthost. I would suggest that > > you configure your client machine to use your mail server as > > a smarthost, since that will make it easier to troubleshoot > > problems and will give you one point where all outbound email > > is queued when your connections is down. > > > > c > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From gshobowale at nextworksltd.com Wed Apr 14 18:12:30 2010 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Wed, 14 Apr 2010 19:12:30 +0100 Subject: mail issues when link is lost In-Reply-To: References: <004501cadaf9$0360d530$0a227f90$@com> <7286afbd7e44ed0258f45691701e8680.squirrel@www.carltm.com> <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> Message-ID: <008101cadbfe$0f7914d0$2e6b3e70$@com> All the clients are configured to use the SMTP server. The log has now been overridden and I can't seem to recreate it again. I have removed the link and tried sending mails but it got queued on the server. But that was one mail not sure if I there about 20 mails on queue what would happen. -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Saurabh Bathe Sent: Wednesday, April 14, 2010 4:02 PM To: redhat-sysadmin-list at redhat.com Subject: Re: mail issues when link is lost Are the clients configured to use you SMTP server to send out emails or ISPs mail server? And what does maillog on your SMTP server says for those requests that do not leave the clients mailbox ? /Saurabh On Wed, Apr 14, 2010 at 4:19 PM, Carl T. Miller wrote: > Okay, so you have one mail server which is running sendmail > and it is configured to use your ISP's smarthost. ?By default > sendmail will queue messages for up to 5 days and will keep > trying to deliver them every 4 hours. ?Unless you have > reconfigured something, it should "just work." > > What files have you updated in the /etc/mail directory? > Can you let us know what has been changed? > > c > > > Oluwagbenga Shobowale wrote: >> Thanks, but all the clients are windows and point to the local mail server >> not the ISP. Yes I am using the ISP server as a smart host. >> My point is I have configure the outlook to point to the local mail server >> 192.168.0.1 >> When mails are sent from the clients it gets delivered to both external >> and internal mails as long as the internet link is up. If now only local >> domain mails get delivered. External mails at that point don't leave the >> clients. >> Thanks >> Sent from my BlackBerry? smartphone from Zain Nigeria >> >> -----Original Message----- >> From: "Carl T. Miller" >> Date: Tue, 13 Apr 2010 07:45:49 >> To: >> Subject: Re: mail ?issues when link is lost >> >> Oluwagbenga Shobowale wrote: >>> Could you help me out with this. I have a mail server which uses >>> sendmail, >>> however we relay all our mail to our ISP to save bandwidth as this >>> traffic >>> is free with our ISP. However, when the link fails we realize that we >>> can >>> send mails locally but not externally. Is there a way to configure >>> sendmail >>> to retain ?the mails on the mail server and send when the link is >>> available. >>> Right now the mails remain on the client machine and are not delivered >>> to >>> the server until the link is back up, well except for the local domain. >> >> If I understand this, you have a mail server using your ISP's >> mail server as its smarthost. ?However, your client machine >> is not configured to use a smarthost. ?I would suggest that >> you configure your client machine to use your mail server as >> a smarthost, since that will make it easier to troubleshoot >> problems and will give you one point where all outbound email >> is queued when your connections is down. >> >> c >> >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- --- Thanks Saurabh Bathe +91 9422785635 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From gshobowale at nextworksltd.com Wed Apr 14 18:36:01 2010 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Wed, 14 Apr 2010 19:36:01 +0100 Subject: mail issues when link is lost In-Reply-To: <20100414173152.GA13658@pinboard.com> References: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> <20100414173152.GA13658@pinboard.com> Message-ID: <008801cadc01$57e390d0$07aab270$@com> Thanks what parameters in send mail can I set to ensure sendmail accepts all domain mails? -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of pbdlists at pinboard.com Sent: Wednesday, April 14, 2010 6:32 PM To: redhat-sysadmin-list at redhat.com Subject: Re: mail issues when link is lost If the internet link is down, DNS resolving for external domains probably won't work either. If sendmail is configured to only accept mail for 'existing' (speak resolvable) domains, this could cause such an issue. The log files of sendmail (/var/log/maillog) should give you home hint. Cheers, Kurt On Wed, Apr 14, 2010 at 06:49:19AM -0400, Carl T. Miller wrote: > Okay, so you have one mail server which is running sendmail > and it is configured to use your ISP's smarthost. By default > sendmail will queue messages for up to 5 days and will keep > trying to deliver them every 4 hours. Unless you have > reconfigured something, it should "just work." > > What files have you updated in the /etc/mail directory? > Can you let us know what has been changed? > > c > > > Oluwagbenga Shobowale wrote: > > Thanks, but all the clients are windows and point to the local mail server > > not the ISP. Yes I am using the ISP server as a smart host. > > My point is I have configure the outlook to point to the local mail server > > 192.168.0.1 > > When mails are sent from the clients it gets delivered to both external > > and internal mails as long as the internet link is up. If now only local > > domain mails get delivered. External mails at that point don't leave the > > clients. > > Thanks > > Sent from my BlackBerryR smartphone from Zain Nigeria > > > > -----Original Message----- > > From: "Carl T. Miller" > > Date: Tue, 13 Apr 2010 07:45:49 > > To: > > Subject: Re: mail issues when link is lost > > > > Oluwagbenga Shobowale wrote: > >> Could you help me out with this. I have a mail server which uses > >> sendmail, > >> however we relay all our mail to our ISP to save bandwidth as this > >> traffic > >> is free with our ISP. However, when the link fails we realize that we > >> can > >> send mails locally but not externally. Is there a way to configure > >> sendmail > >> to retain the mails on the mail server and send when the link is > >> available. > >> Right now the mails remain on the client machine and are not delivered > >> to > >> the server until the link is back up, well except for the local domain. > > > > If I understand this, you have a mail server using your ISP's > > mail server as its smarthost. However, your client machine > > is not configured to use a smarthost. I would suggest that > > you configure your client machine to use your mail server as > > a smarthost, since that will make it easier to troubleshoot > > problems and will give you one point where all outbound email > > is queued when your connections is down. > > > > c > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From pbdlists at pinboard.com Thu Apr 15 18:54:19 2010 From: pbdlists at pinboard.com (pbdlists at pinboard.com) Date: Thu, 15 Apr 2010 20:54:19 +0200 Subject: mail issues when link is lost In-Reply-To: <008801cadc01$57e390d0$07aab270$@com> References: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry> <4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com> <20100414173152.GA13658@pinboard.com> <008801cadc01$57e390d0$07aab270$@com> Message-ID: <20100415185419.GB20375@pinboard.com> There is more than one way to do it. For example you could put the following in your /etc/mail/sendmail.mc file: FEATURE(`accept_unresolvable_domains')dnl (pay close attention to the quotes, the first one is a backtick, the second a single quote!) and then you'd add something like the following in your /etc/mail/access file: Connect:192.168.0 RELAY Connect:192.168.1 RELAY using whatever your internal IP range is. If it really is a DNS issue then you might want to pay attention to the following info and (disabled) configuration in your /etc/mail/sendmail.mc file: dnl # We strongly recommend not accepting unresolvable domains if you want to dnl # protect yourself from spam. However, the laptop and users on computers dnl # that do not have 24x7 DNS do need this. dnl # dnl FEATURE(`accept_unresolvable_domains')dnl To enable that feature remove the 'dnl' at the beginning and end of the line. Cheers, Kurt On Wed, Apr 14, 2010 at 07:36:01PM +0100, Oluwagbenga Shobowale wrote: > Thanks what parameters in send mail can I set to ensure sendmail accepts all > domain mails? > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of > pbdlists at pinboard.com > Sent: Wednesday, April 14, 2010 6:32 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: mail issues when link is lost > > If the internet link is down, DNS resolving for external domains > probably won't work either. If sendmail is configured to only accept > mail for 'existing' (speak resolvable) domains, this could cause such an > issue. The log files of sendmail (/var/log/maillog) should give you home > hint. > > Cheers, > > Kurt > > On Wed, Apr 14, 2010 at 06:49:19AM -0400, Carl T. Miller wrote: > > Okay, so you have one mail server which is running sendmail > > and it is configured to use your ISP's smarthost. By default > > sendmail will queue messages for up to 5 days and will keep > > trying to deliver them every 4 hours. Unless you have > > reconfigured something, it should "just work." > > > > What files have you updated in the /etc/mail directory? > > Can you let us know what has been changed? > > > > c > > > > > > Oluwagbenga Shobowale wrote: > > > Thanks, but all the clients are windows and point to the local mail > server > > > not the ISP. Yes I am using the ISP server as a smart host. > > > My point is I have configure the outlook to point to the local mail > server > > > 192.168.0.1 > > > When mails are sent from the clients it gets delivered to both external > > > and internal mails as long as the internet link is up. If now only local > > > domain mails get delivered. External mails at that point don't leave the > > > clients. > > > Thanks > > > Sent from my BlackBerryR smartphone from Zain Nigeria > > > > > > -----Original Message----- > > > From: "Carl T. Miller" > > > Date: Tue, 13 Apr 2010 07:45:49 > > > To: > > > Subject: Re: mail issues when link is lost > > > > > > Oluwagbenga Shobowale wrote: > > >> Could you help me out with this. I have a mail server which uses > > >> sendmail, > > >> however we relay all our mail to our ISP to save bandwidth as this > > >> traffic > > >> is free with our ISP. However, when the link fails we realize that we > > >> can > > >> send mails locally but not externally. Is there a way to configure > > >> sendmail > > >> to retain the mails on the mail server and send when the link is > > >> available. > > >> Right now the mails remain on the client machine and are not delivered > > >> to > > >> the server until the link is back up, well except for the local domain. > > > > > > If I understand this, you have a mail server using your ISP's > > > mail server as its smarthost. However, your client machine > > > is not configured to use a smarthost. I would suggest that > > > you configure your client machine to use your mail server as > > > a smarthost, since that will make it easier to troubleshoot > > > problems and will give you one point where all outbound email > > > is queued when your connections is down. > > > > > > c > > > > > > > > > -- > > > redhat-sysadmin-list mailing list > > > redhat-sysadmin-list at redhat.com > > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > > > > -- > > > redhat-sysadmin-list mailing list > > > redhat-sysadmin-list at redhat.com > > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From gshobowale at nextworksltd.com Fri Apr 16 05:39:06 2010 From: gshobowale at nextworksltd.com (Oluwagbenga Shobowale) Date: Fri, 16 Apr 2010 05:39:06 +0000 Subject: mail issues when link is lost In-Reply-To: <20100415185419.GB20375@pinboard.com> References: <441410896-1271225244-cardhu_decombobulator_blackberry.rim.net-1774177145-@bda006.bisx.produk.on.blackberry><4f467f95a3b37cca785f5a79edf6d277.squirrel@www.carltm.com><20100414173152.GA13658@pinboard.com><008801cadc01$57e390d0$07aab270$@com><20100415185419.GB20375@pinboard.com> Message-ID: <585685950-1271396535-cardhu_decombobulator_blackberry.rim.net-364771060-@bda006.bisx.produk.on.blackberry> Thanks would look into it. Sent from my BlackBerry? smartphone from Zain Nigeria -----Original Message----- From: pbdlists at pinboard.com Date: Thu, 15 Apr 2010 20:54:19 To: Subject: Re: mail issues when link is lost There is more than one way to do it. For example you could put the following in your /etc/mail/sendmail.mc file: FEATURE(`accept_unresolvable_domains')dnl (pay close attention to the quotes, the first one is a backtick, the second a single quote!) and then you'd add something like the following in your /etc/mail/access file: Connect:192.168.0 RELAY Connect:192.168.1 RELAY using whatever your internal IP range is. If it really is a DNS issue then you might want to pay attention to the following info and (disabled) configuration in your /etc/mail/sendmail.mc file: dnl # We strongly recommend not accepting unresolvable domains if you want to dnl # protect yourself from spam. However, the laptop and users on computers dnl # that do not have 24x7 DNS do need this. dnl # dnl FEATURE(`accept_unresolvable_domains')dnl To enable that feature remove the 'dnl' at the beginning and end of the line. Cheers, Kurt On Wed, Apr 14, 2010 at 07:36:01PM +0100, Oluwagbenga Shobowale wrote: > Thanks what parameters in send mail can I set to ensure sendmail accepts all > domain mails? > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of > pbdlists at pinboard.com > Sent: Wednesday, April 14, 2010 6:32 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: mail issues when link is lost > > If the internet link is down, DNS resolving for external domains > probably won't work either. If sendmail is configured to only accept > mail for 'existing' (speak resolvable) domains, this could cause such an > issue. The log files of sendmail (/var/log/maillog) should give you home > hint. > > Cheers, > > Kurt > > On Wed, Apr 14, 2010 at 06:49:19AM -0400, Carl T. Miller wrote: > > Okay, so you have one mail server which is running sendmail > > and it is configured to use your ISP's smarthost. By default > > sendmail will queue messages for up to 5 days and will keep > > trying to deliver them every 4 hours. Unless you have > > reconfigured something, it should "just work." > > > > What files have you updated in the /etc/mail directory? > > Can you let us know what has been changed? > > > > c > > > > > > Oluwagbenga Shobowale wrote: > > > Thanks, but all the clients are windows and point to the local mail > server > > > not the ISP. Yes I am using the ISP server as a smart host. > > > My point is I have configure the outlook to point to the local mail > server > > > 192.168.0.1 > > > When mails are sent from the clients it gets delivered to both external > > > and internal mails as long as the internet link is up. If now only local > > > domain mails get delivered. External mails at that point don't leave the > > > clients. > > > Thanks > > > Sent from my BlackBerryR smartphone from Zain Nigeria > > > > > > -----Original Message----- > > > From: "Carl T. Miller" > > > Date: Tue, 13 Apr 2010 07:45:49 > > > To: > > > Subject: Re: mail issues when link is lost > > > > > > Oluwagbenga Shobowale wrote: > > >> Could you help me out with this. I have a mail server which uses > > >> sendmail, > > >> however we relay all our mail to our ISP to save bandwidth as this > > >> traffic > > >> is free with our ISP. However, when the link fails we realize that we > > >> can > > >> send mails locally but not externally. Is there a way to configure > > >> sendmail > > >> to retain the mails on the mail server and send when the link is > > >> available. > > >> Right now the mails remain on the client machine and are not delivered > > >> to > > >> the server until the link is back up, well except for the local domain. > > > > > > If I understand this, you have a mail server using your ISP's > > > mail server as its smarthost. However, your client machine > > > is not configured to use a smarthost. I would suggest that > > > you configure your client machine to use your mail server as > > > a smarthost, since that will make it easier to troubleshoot > > > problems and will give you one point where all outbound email > > > is queued when your connections is down. > > > > > > c > > > > > > > > > -- > > > redhat-sysadmin-list mailing list > > > redhat-sysadmin-list at redhat.com > > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > > > > -- > > > redhat-sysadmin-list mailing list > > > redhat-sysadmin-list at redhat.com > > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > > > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From stan.hearn at nscorp.com Tue Apr 27 11:36:36 2010 From: stan.hearn at nscorp.com (Hearn, Stan J.) Date: Tue, 27 Apr 2010 07:36:36 -0400 Subject: HP Requesting SWAP = RAM Message-ID: <538F89E3C87A57448992D542F6B02C0364D34F678B@GATUCEXCH03ASV.nscorp.ad.nscorp.com> We have a new HP ProLiant BL460c G6 with 64GB RAM and mirrored 146GB drives running HP Network Node Manager 8.13. We are having issues with the embedded PostreSQL software. First HP said their software was not supported on RHEL 5.4, only RHEL 5.2. But I refused to downgrade and only offered to downgrade a defined list of packages. But that list was never provided. Then they asked that we modify vm.overcommit_memory=2, but that didn't fix the problem. So HP told us that 18GB of swap was not large enough, we needed at least 64GB of swap to equal the physical RAM. Our usage statistics show less than 32 GB RAM ever being used and 0% of swap being used. However to humor them we added an iSCSI target of 46GB to swap and the problem was resolved. HP support writes "... it is not a matter of the space showing up as used. When our software poll command runs, It looks for a certain amount of swap and our experiences show that the recommended OS setting usually works and fixes the issue." HP also referred to an old statement found on the linux.com "The general rule of thumb for swap size is that your total available swap space should be around double your RAM size. ..." I guess we should be thankful they are not asking for 128 GB of swap. At this same site I found many other sane answers to how much swap for a 64GB system. The system owner is now wanting to replace the 146GB drives with 300GB ones so that we can create this huge swap file. This effects several systems. Why does this seem wrong to me? I don't feel that I have much power to push back. I can't take out memory to reduce the swap space needed. I don't want to continue to run iSCSI on swap. I'm afraid if I relent all my users are going to want really large swap files for illegitimate reasons. Help, give me some ammunition or options? Anyone else having vendors require ridiculous amounts of swap? Anyone else running HP NNM with swap issues? Thanks, Stan From mweber at alliednational.com Tue Apr 27 12:47:46 2010 From: mweber at alliednational.com (Michael Weber) Date: Tue, 27 Apr 2010 07:47:46 -0500 Subject: HP Requesting SWAP = RAM In-Reply-To: <538F89E3C87A57448992D542F6B02C0364D34F678B@GATUCEXCH03ASV.nscorp.ad.nscorp.com> References: <538F89E3C87A57448992D542F6B02C0364D34F678B@GATUCEXCH03ASV.nscorp.ad.nscorp.com> Message-ID: <4BD696A202000013000F9085@mail-apps.alliednational.com> Good morning! If memory serves, the kernel goes into emergency memory saving mode when it detects the available swap space is less than 50% of physical ram. It does this to keep from crashing should memory usage go up. There is a pretty steep performance hit when it does, as you've found out. The kernel really does want swap => ram. It likes its elbow room. Even if you have enough memory that you should never need to swap out a memory page, you still have to have the swap space available. Swapping the drives is one way to get the space needed, or you could stay with the iSCSI space. This assumes that you really will never need to use the swap, because iSCSI speed isn't near what DAS is. If there is even a remote chance your memory usage will go up, grab the drives now. IMHO, of course! Michael Weber Network Administrator Allied National, Inc. 4551 W . 107th St. Suite 100 Overland Park, KS 66207 913-945-4313 is my direct number >>> "Hearn, Stan J." 4/27/2010 6:36 AM >>> We have a new HP ProLiant BL460c G6 with 64GB RAM and mirrored 146GB drives running HP Network Node Manager 8.13. We are having issues with the embedded PostreSQL software. First HP said their software was not supported on RHEL 5.4, only RHEL 5.2. But I refused to downgrade and only offered to downgrade a defined list of packages. But that list was never provided. Then they asked that we modify vm.overcommit_memory=2, but that didn't fix the problem. So HP told us that 18GB of swap was not large enough, we needed at least 64GB of swap to equal the physical RAM. Our usage statistics show less than 32 GB RAM ever being used and 0% of swap being used. However to humor them we added an iSCSI target of 46GB to swap and the problem was resolved. HP support writes "... it is not a matter of the space showing up as used. When our software poll command runs, It looks for a certain amount of swap and our experiences show that the recommended OS setting usually works and fixes the issue." HP also referred to an old statement found on the linux.com "The general rule of thumb for swap size is that your total available swap space should be around double your RAM size. ..." I guess we should be thankful they are not asking for 128 GB of swap. At this same site I found many other sane answers to how much swap for a 64GB system. The system owner is now wanting to replace the 146GB drives with 300GB ones so that we can create this huge swap file. This effects several systems. Why does this seem wrong to me? I don't feel that I have much power to push back. I can't take out memory to reduce the swap space needed. I don't want to continue to run iSCSI on swap. I'm afraid if I relent all my users are going to want really large swap files for illegitimate reasons. Help, give me some ammunition or options? Anyone else having vendors require ridiculous amounts of swap? Anyone else running HP NNM with swap issues? Thanks, Stan -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list E-MAIL CONFIDENTIALITY NOTICE: This communication and any associated file(s) may contain privileged, confidential or proprietary information or be protected from disclosure under law ("Confidential Information"). Any use or disclosure of this Confidential Information, or taking any action in reliance thereon, by any individual/entity other than the intended recipient(s) is strictly prohibited. This Confidential Information is intended solely for the use of the individual(s) addressed. If you are not an intended recipient, you have received this Confidential Information in error and have an obligation to promptly inform the sender and permanently destroy, in its entirety, this Confidential Information (and all copies thereof). E-mail is handled in the strictest of confidence by Allied National, however, unless sent encrypted, it is not a secure communication method and may have been intercepted, edited or altered during transmission and therefore is not guaranteed. From smooge at gmail.com Wed Apr 28 01:02:28 2010 From: smooge at gmail.com (Stephen John Smoogen) Date: Tue, 27 Apr 2010 19:02:28 -0600 Subject: HP Requesting SWAP = RAM In-Reply-To: <4BD696A202000013000F9085@mail-apps.alliednational.com> References: <538F89E3C87A57448992D542F6B02C0364D34F678B@GATUCEXCH03ASV.nscorp.ad.nscorp.com> <4BD696A202000013000F9085@mail-apps.alliednational.com> Message-ID: On Tue, Apr 27, 2010 at 6:47 AM, Michael Weber wrote: > Good morning! > > If memory serves, the kernel goes into emergency memory saving mode when it detects the available swap space is less than 50% of physical ram. ?It does this to keep from crashing should memory usage go up. ?There is a pretty steep performance hit when it does, as you've found out. ?The kernel really does want swap => ram. ?It likes its elbow room. ?Even if you have enough memory that you should never need to swap out a memory page, you still have to have the swap space available. > > Swapping the drives is one way to get the space needed, or you could stay with the iSCSI space. ?This assumes that you really will never need to use the swap, because iSCSI speed isn't near what DAS is. ?If there is even a remote chance your memory usage will go up, grab the drives now. > > IMHO, of course! Interesting. I don't know of any such mode with the 2.6 kernels.. but it could be called something else. To be honest, its the vendor's code and they can do what they damn well please. If they want you to dance 4 times in front of the camera in a pixie suit.. thats the breaks. At that point all one can do is post to a list so that people googling about the problem or whether to buy the software will ever want to. On the other hand I have known that some of these 'tests' are done inside of a script or a program that can be hacked to change what its looking for. You lose all support if you run into issues.. but it can be done for a lot of programs. At this point one needs to go through and see what the program is doing, where and how. In the case where you need to keep your warranty, and don't have any leverage with HP or the person paying your salary... order a bunch of local disks of 256GB or so. Put them in the box call it all swap and use the isci for whatever else you needed. -- Stephen J Smoogen. ?The core skill of innovators is error recovery, not failure avoidance.? Randy Nelson, President of Pixar University. "We have a strategic plan. It's called doing things."" ? Herb Kelleher, founder Southwest Airlines