Re: Sendmail email delays

2008-08-18 Thread Tom Stuart
Giorgos thank you for your response and assistance once again. I have
additional details below I hope that will allow use to further locate
the issue.

localhost is not resolved via dns but instead using /etc/hosts file.
firewall-1# getent hosts
::1   localhost  localhost.xxx.com
127.0.0.1 localhost  localhost.xxx.com firewall-1.xxx.com firewall-1

firewall-1#  fgrep sendmail_ /etc/rc.conf
sendmail_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="YES"
sendmail_msp_queue_enable="YES"

firewall-1# fgrep DirectSubmissionModifiers /etc/mail/sendmail.cf
/etc/mail/submit.cf
/etc/mail/sendmail.cf:#O DirectSubmissionModifiers
/etc/mail/submit.cf:#O DirectSubmissionModifiers

Thanks once again.




On Mon, Aug 18, 2008 at 7:50 AM, Giorgos Keramidas
<[EMAIL PROTECTED]> wrote:
> On Sun, 17 Aug 2008 04:36:11 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
>> I made the changes to rc.conf as suggested. Also below are the new diffs.
>>
>> firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
>> 77c77
>> < dnl define(`SMART_HOST', `your.isp.mail.server')
>> ---
>>> define(`SMART_HOST', `smtp.xxx.com')
>> firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc
>>
>> I have restarted sendmail(Stop,Start) and the interactive mail(mail or
>> mailx) is still delivered instantly. However when swatch is sending
>> mail it is still delayed. I will post some of the maillog in hopes of
>> isolation of the issue. I also notice this error File descriptors
>> missing on startup: stdout, stderr; Bad file descriptor(Only when
>> sending via swatch).
>>
>> Maillog from mail -s test root
>> Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125:
>>   from=username, size=29, class=0, nrcpts=1,
>>   msgid=<[EMAIL PROTECTED]>,
>>   [EMAIL PROTECTED]
>> Aug 17 04:26:49 firewall-1 sm-mta[85126]: m7HAQnOJ085126:
>>   from=<[EMAIL PROTECTED]>, size=400, class=0, nrcpts=1,
>>   [EMAIL PROTECTED]>,
>>   proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
>> Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125:
>>   to=root, ctladdr=user (1001/1001),
>>   delay=00:00:00, xdelay=00:00:00,
>>   mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1],
>>   dsn=2.0.0, stat=Sent (m7HAQnOJ085126 Message accepted for delivery)
>> Aug 17 04:26:50 firewall-1 sm-mta[85127]: m7HAQnOJ085126:
>>   [EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
>>   delay=00:00:01, xdelay=00:00:01,
>>   mailer=relay, pri=30702, relay=smtp.xxx.com. [10.0.0.2],
>>   dsn=2.0.0, stat=Sent (<[EMAIL PROTECTED]> Queued mail for delivery)
>>
>> Maillog from swatch -- Delayed Receipt(1-10 minutes) note this is all
>> relating to the same message.
>>
>> Aug 17 04:30:18 firewall-1 sendmail[85137]:
>>   File descriptors missing on startup: stdout, stderr; Bad file descriptor
>> Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137:
>>   from=user, size=155, class=0, nrcpts=1,
>>   msgid=<[EMAIL PROTECTED]>,
>>   [EMAIL PROTECTED]
>> Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137:
>>   to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued
>
> This part means that Sendmail, for some reason, failed to resolve one
> of the addresses involved.  Are you using DNS to resolve `localhost'?
> Maybe that's why it times out, and it queues the message until the next
> time the queue runner wakes up...
>
> Two other interesting bits of information that ay help us find out
> what's going on are:
>
>  (1) Your sendmail_xxx options in /etc/rc.conf:
>
># fgrep sendmail_ /etc/rc.conf
>
>  (2) The value of `DirectSubmissionModifiers' in sendmail.cf and
>  submit.cf:
>
># fgrep DirectSubmissionModifiers /etc/mail/sendmail.cf \
>  /etc/mail/submit.cf
>
>> Aug 17 04:31:34 firewall-1 sm-mta[85148]: m7HAVYEI085148:
>>   from=<[EMAIL PROTECTED]>, size=517, class=0, nrcpts=1,
>>   msgid=<[EMAIL PROTECTED]>,
>>   proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
>
> A minute later, the queue runner wakes up...
>
>> Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148:
>>   [EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
>>   delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30819, 
>> relay=smtp.xxx.com. [10.0.0.2],
>>   dsn=2.0.0, stat=Sent (<[EMAIL PROTECTED]> Queued mail for delivery)
>
> ... and sends it normally.
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-18 Thread Giorgos Keramidas
On Sun, 17 Aug 2008 04:36:11 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
> I made the changes to rc.conf as suggested. Also below are the new diffs.
>
> firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
> 77c77
> < dnl define(`SMART_HOST', `your.isp.mail.server')
> ---
>> define(`SMART_HOST', `smtp.xxx.com')
> firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc
>
> I have restarted sendmail(Stop,Start) and the interactive mail(mail or
> mailx) is still delivered instantly. However when swatch is sending
> mail it is still delayed. I will post some of the maillog in hopes of
> isolation of the issue. I also notice this error File descriptors
> missing on startup: stdout, stderr; Bad file descriptor(Only when
> sending via swatch).
>
> Maillog from mail -s test root
> Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125:
>   from=username, size=29, class=0, nrcpts=1,
>   msgid=<[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED]
> Aug 17 04:26:49 firewall-1 sm-mta[85126]: m7HAQnOJ085126:
>   from=<[EMAIL PROTECTED]>, size=400, class=0, nrcpts=1,
>   [EMAIL PROTECTED]>,
>   proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
> Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125:
>   to=root, ctladdr=user (1001/1001),
>   delay=00:00:00, xdelay=00:00:00,
>   mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1],
>   dsn=2.0.0, stat=Sent (m7HAQnOJ085126 Message accepted for delivery)
> Aug 17 04:26:50 firewall-1 sm-mta[85127]: m7HAQnOJ085126:
>   [EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
>   delay=00:00:01, xdelay=00:00:01,
>   mailer=relay, pri=30702, relay=smtp.xxx.com. [10.0.0.2],
>   dsn=2.0.0, stat=Sent (<[EMAIL PROTECTED]> Queued mail for delivery)
>
> Maillog from swatch -- Delayed Receipt(1-10 minutes) note this is all
> relating to the same message.
>
> Aug 17 04:30:18 firewall-1 sendmail[85137]:
>   File descriptors missing on startup: stdout, stderr; Bad file descriptor
> Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137:
>   from=user, size=155, class=0, nrcpts=1,
>   msgid=<[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED]
> Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137:
>   to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued

This part means that Sendmail, for some reason, failed to resolve one
of the addresses involved.  Are you using DNS to resolve `localhost'?
Maybe that's why it times out, and it queues the message until the next
time the queue runner wakes up...

Two other interesting bits of information that ay help us find out
what's going on are:

  (1) Your sendmail_xxx options in /etc/rc.conf:

# fgrep sendmail_ /etc/rc.conf

  (2) The value of `DirectSubmissionModifiers' in sendmail.cf and
  submit.cf:

# fgrep DirectSubmissionModifiers /etc/mail/sendmail.cf \
  /etc/mail/submit.cf

> Aug 17 04:31:34 firewall-1 sm-mta[85148]: m7HAVYEI085148:
>   from=<[EMAIL PROTECTED]>, size=517, class=0, nrcpts=1,
>   msgid=<[EMAIL PROTECTED]>,
>   proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]

A minute later, the queue runner wakes up...

> Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148:
>   [EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
>   delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30819, 
> relay=smtp.xxx.com. [10.0.0.2],
>   dsn=2.0.0, stat=Sent (<[EMAIL PROTECTED]> Queued mail for delivery)

... and sends it normally.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


{Disarmed} Re: {Spam?} {Disarmed} Re: Sendmail email delays

2008-08-17 Thread Derek Ragona

At 07:49 PM 8/15/2008, Tom Stuart wrote:
I have tried doing the forwarding via /etc/mail/aliases and it worked 
identically as it was with the /root/.forward. The mail does go through 
but gets delayed 5+ minutes, however when I send mail interactively using 
mailx or mail commands the receiving mailserver receives the message instantly.


I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail 
restart the mail gets instantly received also...Thanks for the help thus far


Check your sendmail options in /etc/rc.conf and if you don't have any 
there, check the defaults.  Usually you are running two versions of 
sendmail.  Check the sendmail flags you are using for something like 
-q5m.  If you see this, try changing the value and see if that effects your 
delivery time.


-Derek



On Fri, Aug 15, 2008 at 6:22 PM, Derek Ragona 
<[EMAIL PROTECTED]> wrote:

At 03:49 PM 8/15/2008, Tom Stuart wrote:

I've been having trouble sending email that was sent via a process(swatch).
I can send emails fine via command-line and receive immediately to the
forwarded address. However when sent via swatch it can take 5-10 minutes.
These entries appear in /var/log/mailllog. Note this is all relating to the
same email and notice the 11 minute delay. Thanks in advance for any help.

Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
size=155, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]

ocalhost
Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=<
[EMAIL PROTECTED]>, 
size=512, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, 
proto=ESMTP,
daemon=Daemon0, relay=localhost [MailScanner warning: 
numerical links are often malicious: 127.0.0.1]

Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay,
pri=120155, relay=[MailScanner warning: numerical 
links are often malicious: 127.0.0.1
] [MailScanner warning: numerical links are often 
malicious: 127.0.0.1], dsn=2.0.0, stat=Sent 
(m7FKk3wc072794 Message accepted for

delivery)
Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
[EMAIL PROTECTED], 
ctladdr=<[EMAIL PROTECTED]> 
 (1001/1001),

delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. 
[MailScanner warning: numerical links are often 
malicious: 10.0.0.2], dsn=2.0.0,
stat=Sent ( 
<[EMAIL PROTECTED]> 
Queued mail for

delivery)


I think its important to know these details:
firewall-1# uname -a
FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 
7.0-RC1 #2: Tue Feb  5 07:10:05

MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386

There is a .forward file in /root to forward root's mail to
[EMAIL PROTECTED] is to be sent via smarthost.


I have the smarthost "DS" parameter in 
/etc/mail/sendmail.cf configured to

use DSsmtp.xxx.com

/etc/hosts contains
localhost MailScanner warning: numerical 
links are often malicious: 127.0.0.1 firewall-1 
firewall-1.xxx.com
smtp.xxx.com MailScanner 
warning: numerical links are often malicious: 10.0.0.2


Have you tried changing the alias for root to the forwarded address in 
/etc/mail/aliases?  You can make the change there and rebuild the aliases file.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-17 Thread Tom Stuart
I made the changes to rc.conf as suggested. Also below are the new diffs.

firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
77c77
< dnl define(`SMART_HOST', `your.isp.mail.server')
---
> define(`SMART_HOST', `smtp.xxx.com')
firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc

I have restarted sendmail(Stop,Start) and the interactive mail(mail or
mailx) is still delivered instantly. However when swatch is sending
mail it is still delayed. I will post some of the maillog in hopes of
isolation of the issue. I also notice this error File descriptors
missing on startup: stdout, stderr; Bad file descriptor(Only when
sending via swatch).

Maillog from mail -s test root
Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125:
from=username, size=29, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Aug 17 04:26:49 firewall-1 sm-mta[85126]: m7HAQnOJ085126:
from=<[EMAIL PROTECTED]>, size=400, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED]>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125: to=root,
ctladdr=user (1001/1001), delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=30029, relay=[127.0.0.1] [12
7.0.0.1], dsn=2.0.0, stat=Sent (m7HAQnOJ085126 Message accepted for delivery)
Aug 17 04:26:50 firewall-1 sm-mta[85127]: m7HAQnOJ085126:
[EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
delay=00:00:01, xdelay=00:0
0:01, mailer=relay, pri=30702, relay=smtp.xxx.com. [10.0.0.2],
dsn=2.0.0, stat=Sent (
<[EMAIL PROTECTED]> Queued mail for
delivery)

Maillog from swatch -- Delayed Receipt(1-10 minutes) note this is all
relating to the same message.

Aug 17 04:30:18 firewall-1 sendmail[85137]: File descriptors missing
on startup: stdout, stderr; Bad file descriptor
Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: from=user,
size=155, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 17 04:31:34 firewall-1 sm-mta[85148]: m7HAVYEI085148:
from=<[EMAIL PROTECTED]>, size=517, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Aug 17 04:31:34 firewall-1 sm-msp-queue[85147]: m7HAUIBd085137:
to=root, ctladdr=user (1001/1001), delay=00:01:16, xdelay=00:00:00,
mailer=relay, pri=120155, relay=[127.0.0.1
] [127.0.0.1], dsn=2.0.0, stat=Sent (m7HAVYEI085148 Message accepted
for delivery)
Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148:
[EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
delay=00:00:01, xdelay=00:0
0:01, mailer=relay, pri=30819, relay=smtp.xxx.com. [10.0.0.2],
dsn=2.0.0, stat=Sent (
<[EMAIL PROTECTED]> Queued mail for
delivery)

Thank you all for the help thus far. I think we are close to finding the issue.








On Sun, Aug 17, 2008 at 3:58 AM, Giorgos Keramidas
<[EMAIL PROTECTED]> wrote:
> On Sat, 16 Aug 2008 16:27:50 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
>> Here are my diffs for the files as requested. I'm thinking the actual
>> issue may lay in my submit.mc configuration. Right now I have just the
>> base file as I've tried editing it to no success so I changed it back
>> to normal. I "assumed" you had to edit this line. I'll also note that
>> the "smarthost" is a Windows 2003 Server running Exchange, relaying is
>> enable
>>
>> FEATURE(`msp', `[127.0.0.1]')dnl
>>
>> and change the value to 10.0.0.2(which is the Smarthost IP),
>>
>> The Diffs:
>>
>> firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
>> 77c77
>> < dnl define(`SMART_HOST', `your.isp.mail.server')
>> ---
>>> define(`SMART_HOST', `smtp.xxx.com')
>> firewall-1#
>> firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc
>> firewall-1#
>
> Hmmm.  Then this is probably the problem...
>
> If the remote server is an Exchange system, I am not sure if using it as
> an MSP in `submit.mc' is supposed to work.
>
> Try resetting the `msp' value in `submit.mc' to:
>
>FEATURE(`msp', `[127.0.0.1]')dnl
>
> and set `SMART_HOST' in `firewall-1.xxx.com.mc' (not in the
> `firewall-1.xxx.com.submit.mc' file):
>
>define(`SMART_HOST', `smtp.xxx.com')
>
> Then you should enable the `submit' and `msp_queue' sendmail processes
> in `/etc/rc.conf' too:
>
>sendmail_enable="NO"
>sendmail_outbound_enable="NO"
>sendmail_submit_enable="YES"
>sendmail_msp_queue_enable="YES"
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-17 Thread Giorgos Keramidas
On Sat, 16 Aug 2008 16:27:50 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
> Here are my diffs for the files as requested. I'm thinking the actual
> issue may lay in my submit.mc configuration. Right now I have just the
> base file as I've tried editing it to no success so I changed it back
> to normal. I "assumed" you had to edit this line. I'll also note that
> the "smarthost" is a Windows 2003 Server running Exchange, relaying is
> enable
>
> FEATURE(`msp', `[127.0.0.1]')dnl
>
> and change the value to 10.0.0.2(which is the Smarthost IP),
>
> The Diffs:
>
> firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
> 77c77
> < dnl define(`SMART_HOST', `your.isp.mail.server')
> ---
>> define(`SMART_HOST', `smtp.xxx.com')
> firewall-1#
> firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc
> firewall-1#

Hmmm.  Then this is probably the problem...

If the remote server is an Exchange system, I am not sure if using it as
an MSP in `submit.mc' is supposed to work.

Try resetting the `msp' value in `submit.mc' to:

FEATURE(`msp', `[127.0.0.1]')dnl

and set `SMART_HOST' in `firewall-1.xxx.com.mc' (not in the
`firewall-1.xxx.com.submit.mc' file):

define(`SMART_HOST', `smtp.xxx.com')

Then you should enable the `submit' and `msp_queue' sendmail processes
in `/etc/rc.conf' too:

sendmail_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="YES"
sendmail_msp_queue_enable="YES"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-16 Thread Tom Stuart
Here are my diffs for the files as requested. I'm thinking the actual
issue may lay in my submit.mc configuration. Right now I have just the
base file as I've tried editing it to no success so I changed it back
to normal. I "assumed" you had to edit this line. I'll also note that
the "smarthost" is a Windows 2003 Server running Exchange, relaying is
enable

FEATURE(`msp', `[127.0.0.1]')dnl

and change the value to 10.0.0.2(which is the Smarthost IP),

The Diffs:

firewall-1# diff freebsd.mc firewall-1.xxx.com.mc
77c77
< dnl define(`SMART_HOST', `your.isp.mail.server')
---
> define(`SMART_HOST', `smtp.xxx.com')
firewall-1#
firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc
firewall-1#

On Sat, Aug 16, 2008 at 1:52 AM, Giorgos Keramidas
<[EMAIL PROTECTED]> wrote:
>
> On Fri, 15 Aug 2008 18:49:39 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
> > I have tried doing the forwarding via /etc/mail/aliases and it worked
> > identically as it was with the /root/.forward. The mail does go through but
> > gets delayed 5+ minutes, however when I send mail interactively using mailx
> > or mail commands the receiving mailserver receives the message instantly.
> >
> > I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail
> > restart the mail gets instantly received also...Thanks for the help thus far
>
> It usually helps to see what changes you have made to `sendmail.mc' from
> the stock FreeBSD version.  Can you post diff output from the following?
>
># cd /etc/mail
># diff -c freebsd.mc `hostname`.mc
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-16 Thread Giorgos Keramidas
On Fri, 15 Aug 2008 18:49:39 -0600, "Tom Stuart" <[EMAIL PROTECTED]> wrote:
> I have tried doing the forwarding via /etc/mail/aliases and it worked
> identically as it was with the /root/.forward. The mail does go through but
> gets delayed 5+ minutes, however when I send mail interactively using mailx
> or mail commands the receiving mailserver receives the message instantly.
>
> I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail
> restart the mail gets instantly received also...Thanks for the help thus far

It usually helps to see what changes you have made to `sendmail.mc' from
the stock FreeBSD version.  Can you post diff output from the following?

# cd /etc/mail
# diff -c freebsd.mc `hostname`.mc

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-15 Thread Tom Stuart
I have tried doing the forwarding via /etc/mail/aliases and it worked
identically as it was with the /root/.forward. The mail does go through but
gets delayed 5+ minutes, however when I send mail interactively using mailx
or mail commands the receiving mailserver receives the message instantly.

I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail
restart the mail gets instantly received also...Thanks for the help thus far

On Fri, Aug 15, 2008 at 6:22 PM, Derek Ragona <
[EMAIL PROTECTED]> wrote:

>  At 03:49 PM 8/15/2008, Tom Stuart wrote:
>
> I've been having trouble sending email that was sent via a process(swatch).
> I can send emails fine via command-line and receive immediately to the
> forwarded address. However when sent via swatch it can take 5-10 minutes.
> These entries appear in /var/log/mailllog. Note this is all relating to the
> same email and notice the 11 minute delay. Thanks in advance for any help.
>
> Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
> size=155, class=0, nrcpts=1, msgid=<
> [EMAIL PROTECTED]>, [EMAIL PROTECTED]
> ocalhost
> Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
> delay=00:00:00, mailer=relay, pri=30155, stat=queued
> Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
> size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
> Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=<
> [EMAIL PROTECTED]>, size=512, class=0, nrcpts=1, msgid=<
> [EMAIL PROTECTED]>, proto=ESMTP,
> daemon=Daemon0, relay=localhost [127.0.0.1]
> Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
> ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00,
> mailer=relay,
> pri=120155, relay=[127.0.0.1
> ] [127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for
> delivery)
> Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
> [EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
> delay=00:00:00, xdelay=00:0
> 0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0,
> stat=Sent ( <[EMAIL PROTECTED]> Queued mail
> for
> delivery)
>
>
> I think its important to know these details:
> firewall-1# uname -a
> FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb  5 07:10:05
> MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386
>
> There is a .forward file in /root to forward root's mail to
> [EMAIL PROTECTED] is to be sent via smarthost.
>
> I have the smarthost "DS" parameter in /etc/mail/sendmail.cf configured to
> use DSsmtp.xxx.com
>
> /etc/hosts contains
> localhost 127.0.0.1 firewall-1 firewall-1.xxx.com
> smtp.xxx.com 10.0.0.2
>
>
> Have you tried changing the alias for root to the forwarded address in
> /etc/mail/aliases?  You can make the change there and rebuild the aliases
> file.
>
> -Derek
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* , and is
> believed to be clean.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail email delays

2008-08-15 Thread Derek Ragona

At 03:49 PM 8/15/2008, Tom Stuart wrote:

I've been having trouble sending email that was sent via a process(swatch).
I can send emails fine via command-line and receive immediately to the
forwarded address. However when sent via swatch it can take 5-10 minutes.
These entries appear in /var/log/mailllog. Note this is all relating to the
same email and notice the 11 minute delay. Thanks in advance for any help.

Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
size=155, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, [EMAIL PROTECTED]
ocalhost
Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=<
[EMAIL PROTECTED]>, size=512, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay,
pri=120155, relay=[127.0.0.1
] [127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for
delivery)
Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
[EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0,
stat=Sent ( <[EMAIL PROTECTED]> Queued mail for
delivery)


I think its important to know these details:
firewall-1# uname -a
FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb  5 07:10:05
MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386

There is a .forward file in /root to forward root's mail to
[EMAIL PROTECTED] is to be sent via smarthost.

I have the smarthost "DS" parameter in /etc/mail/sendmail.cf configured to
use DSsmtp.xxx.com

/etc/hosts contains
localhost 127.0.0.1 firewall-1 firewall-1.xxx.com
smtp.xxx.com 10.0.0.2


Have you tried changing the alias for root to the forwarded address in 
/etc/mail/aliases?  You can make the change there and rebuild the aliases file.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sendmail email delays

2008-08-15 Thread Tom Stuart
I've been having trouble sending email that was sent via a process(swatch).
I can send emails fine via command-line and receive immediately to the
forwarded address. However when sent via swatch it can take 5-10 minutes.
These entries appear in /var/log/mailllog. Note this is all relating to the
same email and notice the 11 minute delay. Thanks in advance for any help.

Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
size=155, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, [EMAIL PROTECTED]
ocalhost
Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=<
[EMAIL PROTECTED]>, size=512, class=0, nrcpts=1, msgid=<
[EMAIL PROTECTED]>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay,
pri=120155, relay=[127.0.0.1
] [127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for
delivery)
Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
[EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]> (1001/1001),
delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0,
stat=Sent ( <[EMAIL PROTECTED]> Queued mail for
delivery)


I think its important to know these details:
firewall-1# uname -a
FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb  5 07:10:05
MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386

There is a .forward file in /root to forward root's mail to
[EMAIL PROTECTED] is to be sent via smarthost.

I have the smarthost "DS" parameter in /etc/mail/sendmail.cf configured to
use DSsmtp.xxx.com

/etc/hosts contains
localhost 127.0.0.1 firewall-1 firewall-1.xxx.com
smtp.xxx.com 10.0.0.2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"