Sendmail
Abdul Salam. Netsite Ltd
abdul at netsite.co.uk
Thu Feb 6 12:57:13 GMT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0456_01C2CDDF.45091760
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi ya,
Thanks for your interest in this. Below is the full mail header of one =
of the failed messages. Perhaps, this may help you.
--h15LT0m00461.1044480540/apache.netsite.co.uk
Content-Type: message/delivery-status
Reporting-MTA: dns; apache.netsite.co.uk
Arrival-Date: Wed, 5 Feb 2003 17:19:13 GMT
Final-Recipient: RFC822; abdul at netsite.co.uk
Action: delayed
Status: 4.4.3
Remote-MTA: DNS; smtp.netsite.co.uk
Last-Attempt-Date: Wed, 5 Feb 2003 21:29:00 GMT
Will-Retry-Until: Mon, 10 Feb 2003 17:19:13 GMT
Yes, this box is listed in the relay list of our smtp box.=20
Many Thanks,
-Abdul
----- Original Message -----=20
From: Jon Mercer=20
To: Abdul Salam. Netsite Ltd=20
Sent: Thursday, February 06, 2003 12:34 PM
Subject: Re: Sendmail
This get wierder and wierder, it's good that it's receiving mails, but =
if you are still getting the dsn 4.0.0 error it implies there must be =
something wrong somewhere. If the smtp logfile doesn't show any =
connections, not just successful transfers, from the new box, the new =
box must be trying to contact somewhere else. Which brings up some =
interesting questions about DNS still.
Is you box listed in the relay-domains file on the smtp box? If not =
I'd expect a 5.0.0 error, not this one. 4.0.0 is a temp failure. I think =
you need to have a look at the full headers of the rejected mails to see =
if there is any more info in there. They should be in =
/var/spool/mail/<whoever you're sending it as>
Abdul Salam. Netsite Ltd wrote:
I have already checked my mail server (smtp.netsite.co.uk) log. It =
is NOT receiving any mails from this IP address. It looks like it is =
using the actual mail server now for relay (Please see the maillog at =
the end of the mail). There is one good news, my server is started =
receiving Emails. But, still not sending.
Thanks,
-Abdul
----- Original Message -----=20
From: Jon Mercer=20
To: Abdul Salam. Netsite Ltd=20
Sent: Thursday, February 06, 2003 11:05 AM
Subject: Re: Sendmail
Ok, that's looking much better, but the next thing to do is find =
out if the smtp machine is actually receiving the mail feed, so I'd =
recommend checking the logs on that for a similar entry, and also =
possibly a reason why it is timing out.
I'm a bit confused, how is it you are actually sending the mail =
when it gets the mail2 hostname back?
Abdul Salam. Netsite Ltd wrote:
Hi John,
Thanks again. I have tried many tests on the server and =
everything looks fine. I am able to send and receive mail to the =
different users of the server. When I do a "dig" on MX records I am =
getting the following message
; <<>> DiG 8.3 <<>> apache.netsite.co.uk mx=20
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;; apache.netsite.co.uk, type =3D MX, class =3D IN
;; AUTHORITY SECTION:
netsite.co.uk. 30S IN SOA ns0.netsite.co.uk. andy.netsite.co.uk. (
184 ; serial
1H ; refresh
10M ; retry
1D ; expiry
30S ) ; minimum
;; Total query time: 1 msec
;; FROM: apache.netsite.co.uk to SERVER: default -- 217.33.114.5
;; WHEN: Thu Feb 6 09:23:08 2003
;; MSG SIZE sent: 38 rcvd: 83
=20
Which has an MX entry. So, I hope I can rule out any DNS issue now. =
Right..?. I am able to telnet to port 25 aswell. So, I can rule out
the possibility of sendmail daemon not running properly, yes..?.I have =
now added my domains (apache.netsite.co.uk)=20
in /etc/mail/local-host-names aswell as /etc/mail/relay-domains. Still =
it is NOT sending or receiving external mails. Here is
my /etc/log/maillog entry.
=20
Feb 6 09:44:50 apache sendmail[958]: h169inc00956: =
to=3Dabdul at netsite.co.uk, ctladdr=3Dabdul (1001/0),=20
delay=3D00:00:01, xdelay=3D00:00:01, mailer=3Drelay, pri=3D30046, =
relay=3Dsmtp.netsite.co.uk., dsn=3D4.0.0,=20
stat=3DDeferred: Operation timed out with smtp.netsite.co.uk.
Now, since the domain is exposed (apache.netsite.co.uk), you will also =
be able to do some tests on your end, if you wish.
Please let me know, if anything comes up.
=20
Cheers!
-Abdul
=20
----- Original Message -----=20
From: Jon Mercer=20
To: Abdul Salam. Netsite Ltd=20
Cc: freebsd-users at uk.freebsd.org=20
Sent: Wednesday, February 05, 2003 6:51 PM
Subject: Re: Sendmail
Hiya,
Setting up a smart host means that the host you nominate will =
receive all mail that the localhost doesn't know how to deal with. What =
you need to find out is why your local host thinks that the mail2 host =
is the right one to contact. If this is a problem that just exists on =
the local host, try doing an MX nslookup from that localhost for the =
domain netsite.co.uk and see what gets sent back.
If that returns the smtp host, you can rule out DNS as a =
source of the error. You then need to do a rules test to see which rule =
is deciding that it needs to contact mail2. This might pick up a =
misconfigured mailer, or similar. You might want to run sendmail -d35.9 =
to see what macros are being set at startup. If a mail2 host can be =
seen, there is definitely a misconfiguration of sendmail somewhere.
There may be a number of files in which mail2 could be =
configured into.
Cheers,
Jon
Abdul Salam. Netsite Ltd wrote:
Hi John,
Thanks for the reply. But, I still not succeeded in this. I =
think this has got nothing to do with either apache or php =
configurations. Looks like a pure UNIX sendmail issue. It is not sending =
mail from "mail" command. Even there, it is NOT displaying any errors. I =
added my mail server name as "Smart" relay host in sendmail.cf and now, =
it looks like it is using the real mail server for relay, which is =
smtp.mydomain.com. But, still I could see the same error message in the =
log file. I have added an entry for the "smtp.mydomain.com" in =
/etc/hosts aswell. Can anybody help me in this.
Thanks,
-Abdul
----- Original Message -----=20
From: Jon Mercer=20
To: Abdul Salam. Netsite Ltd=20
Cc: freebsd-users at uk.freebsd.org=20
Sent: Tuesday, February 04, 2003 7:36 PM
Subject: Re: Sendmail
This sounds like a sendmail configuration error, although =
I've also seen problems myself with php where it always sets the sender =
to me at localhost. That said, DSN 4.0.0 (persistent transient failure - =
RFC 1893) isn't that happening, just a result of a perfectly legal relay =
attempt to a box that doesn't exist!
Abdul Salam. Netsite Ltd wrote:
Hi there,
I have a FreeBSD running apache along with php. But, =
when I am not able to send any mails using php, though there is no error =
displayed on the web page. The php and apache configurations seems to be =
right. All mails are still available on the queue and the =
/var/log/maillog has the following message
The mail() function in php doesn't return errors retrieved =
from the mail subsystem, which is very annoying. Sendmail thinks the box =
mail2 is down so will queue the message until it is too old (probably =
configured as 5 days)
sendmail[29496] to abdul at netsite.co.uk etc.. etc.... =
relay=3Dmail2.mydomain.co.uk., dsn=3D4.0.0, stat=3DDeffered, Operation =
timed out with mail2.mydomain.co.uk=20
It's well worth trying:
$ sendmail -v -bt=20
> 3,0 abdul at netsite.co.uk
And seeing where in the ruleset it is getting in a muddle. =
It sounds like an attempted (e)smtp to the mail2 host, which will be =
configured somewhere within sendmail.
During set-up I don't remember mentioning =
mail2.mydomain.co.uk anywhere and our mail server is smtp.mydomain.co.uk =
rather than mail2. The MX records on the DNS is pointed to this. I am =
not sure, where should I enter the mail server name, if at all I want to =
do it. Any help with this will be appreciated.
If you didn't configure sendmail yourself, there could be =
a piece of misconfiguration happening somewhere, and tracking down where =
can be a bit of a pain in the *rse. Depends on whether sendmail was =
configured with the m4 macros, or if it was hacked in the sendmail.cf. =
First things first, doa cheack of all the files in /etc/mail to see if =
there is something obvious.
Cheers!
-Abdul
Jon
------=_NextPart_000_0456_01C2CDDF.45091760
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi ya,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your interest in this. Below =
is the full=20
mail header of one of the failed messages. Perhaps, this may help=20
you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>--h15LT0m00461.1044480540/apache.netsite.co.uk<BR>Content-Type:=20
message/delivery-status<BR><BR>Reporting-MTA: dns;=20
apache.netsite.co.uk<BR>Arrival-Date: Wed, 5 Feb 2003 17:19:13=20
GMT<BR><BR>Final-Recipient: RFC822; <A=20
href=3D"mailto:abdul at netsite.co.uk">abdul at netsite.co.uk</A><BR>Action:=20
delayed<BR>Status: 4.4.3<BR>Remote-MTA: DNS;=20
smtp.netsite.co.uk<BR>Last-Attempt-Date: Wed, 5 Feb 2003 21:29:00=20
GMT<BR>Will-Retry-Until: Mon, 10 Feb 2003 17:19:13 GMT<BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Yes, this box is listed in the relay =
list of our=20
smtp box. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Many Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Djon at trojan-heroes.co.uk =
href=3D"mailto:jon at trojan-heroes.co.uk">Jon=20
Mercer</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dabdul at netsite.co.uk=20
href=3D"mailto:abdul at netsite.co.uk">Abdul Salam. Netsite Ltd</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, February 06, =
2003 12:34=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Sendmail</DIV>
<DIV><BR></DIV>This get wierder and wierder, it's good that it's =
receiving=20
mails, but if you are still getting the dsn 4.0.0 error it implies =
there must=20
be something wrong somewhere. If the smtp logfile doesn't show any=20
connections, not just successful transfers, from the new box, the new =
box must=20
be trying to contact somewhere else. Which brings up some interesting=20
questions about DNS still.<BR><BR>Is you box listed in the =
relay-domains file=20
on the smtp box? If not I'd expect a 5.0.0 error, not this one. 4.0.0 =
is a=20
temp failure. I think you need to have a look at the full headers of =
the=20
rejected mails to see if there is any more info in there. They should =
be in=20
/var/spool/mail/<whoever you're sending it as><BR><BR>Abdul =
Salam.=20
Netsite Ltd wrote:<BR>
<BLOCKQUOTE =
cite=3Dmid03fb01c2cdcf$db9fc300$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<DIV><FONT face=3DArial size=3D2>I have already checked my mail =
server=20
(smtp.netsite.co.uk) log. It is NOT receiving any mails from this IP =
address. It looks like it is using the actual mail server now for=20
relay (Please see the maillog at the end of the mail). There is =
one good news, my server is started receiving Emails. But, =
still not=20
sending.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; font-size-adjust: =
none">-----=20
Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; =
font-stretch: normal; font-size-adjust: none; moz-background-clip: =
initial; moz-background-origin: initial"><B>From:</B>=20
<A title=3Djon at trojan-heroes.co.uk =
href=3D"mailto:jon at trojan-heroes.co.uk">Jon=20
Mercer</A> </DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; font-size-adjust: =
none"><B>To:</B>=20
<A title=3Dabdul at netsite.co.uk =
href=3D"mailto:abdul at netsite.co.uk">Abdul=20
Salam. Netsite Ltd</A> </DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; font-size-adjust: =
none"><B>Sent:</B>=20
Thursday, February 06, 2003 11:05 AM</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; font-size-adjust: =
none"><B>Subject:</B>=20
Re: Sendmail</DIV>
<DIV><BR></DIV>Ok, that's looking much better, but the next thing =
to do is=20
find out if the smtp machine is actually receiving the mail feed, =
so I'd=20
recommend checking the logs on that for a similar entry, and also =
possibly=20
a reason why it is timing out.<BR><BR>I'm a bit confused, how is =
it you=20
are actually sending the mail when it gets the mail2 hostname=20
back?<BR><BR>Abdul Salam. Netsite Ltd wrote:<BR>
<BLOCKQUOTE =
cite=3Dmid038301c2cdc7$ed96e370$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<DIV><FONT face=3DArial size=3D2>Hi John,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again. I have tried many =
tests on=20
the server and everything looks fine. I am able to send and =
receive mail=20
to the different users of the server. When I do a "dig" on MX =
records I=20
am getting the following message</FONT></DIV>
<DIV> </DIV>
<DIV><PRE>; <<>> DiG 8.3 <<>> =
apache.netsite.co.uk mx=20
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;; apache.netsite.co.uk, type =3D MX, class =3D IN
;; AUTHORITY SECTION:
netsite.co.uk. 30S IN SOA ns0.netsite.co.uk. andy.netsite.co.uk. (
184 ; serial
1H ; refresh
10M ; retry
1D ; expiry
30S ) ; minimum
;; Total query time: 1 msec
;; FROM: apache.netsite.co.uk to SERVER: default -- 217.33.114.5
;; WHEN: Thu Feb 6 09:23:08 2003
;; MSG SIZE sent: 38 rcvd: 83
</PRE><PRE><FONT face=3DArial>Which has an MX entry. So, I hope I can =
rule out any DNS issue now. Right..?. I am able to telnet to port 25 =
aswell. So, I can rule out</FONT></PRE><PRE><FONT face=3DArial>the =
possibility of sendmail daemon not running properly, yes..?.</FONT><FONT =
face=3DArial>I have now added my domains (apache.netsite.co.uk) =
</FONT></PRE><PRE><FONT face=3DArial>i</FONT><FONT face=3DArial>n =
/etc/mail/local-host-names aswell as /etc/mail/relay-domains. Still it =
is NOT sending or receiving external mails. Here =
is</FONT></PRE><PRE><FONT face=3DArial>my /etc/log/maillog =
entry.</FONT></PRE><PRE> </PRE><PRE>Feb 6 09:44:50 apache =
sendmail[958]: h169inc00956: <A class=3Dmoz-txt-link-abbreviated =
href=3D"mailto:to=3Dabdul at netsite.co.uk">to=3Dabdul at netsite.co.uk</A>, =
ctladdr=3Dabdul (1001/0), </PRE><PRE>delay=3D00:00:01, =
xdelay=3D00:00:01, mailer=3Drelay, pri=3D30046, =
relay=3Dsmtp.netsite.co.uk., dsn=3D4.0.0, </PRE><PRE><FONT =
color=3D#ff0000>stat=3DDeferred: Operation timed out with =
smtp.netsite.co.uk.
</FONT></PRE><PRE><FONT face=3DArial>Now, since the domain is exposed =
(apache.netsite.co.uk), you will also be able to do some tests on your =
end, if you wish.</FONT></PRE><PRE><FONT face=3DArial>Please let me =
know, if anything comes =
up.</FONT></PRE><PRE> </PRE><PRE>Cheers!</PRE><PRE>-Abdul</PRE><PRE>=
</PRE></DIV>
<DIV><PRE>----- Original Message ----- </PRE></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: =
5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV=20
style=3D"BACKGROUND: rgb(228,228,228) 50% 0%; FONT: 10pt =
arial; font-stretch: normal; font-size-adjust: none; =
moz-background-clip: initial; moz-background-origin: =
initial"><B>From:</B>=20
<A title=3Djon at trojan-heroes.co.uk=20
href=3D"mailto:jon at trojan-heroes.co.uk">Jon Mercer</A> </DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>To:</B>=20
<A title=3Dabdul at netsite.co.uk =
href=3D"mailto:abdul at netsite.co.uk">Abdul=20
Salam. Netsite Ltd</A> </DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Cc:</B>=20
<A title=3Dfreebsd-users at uk.freebsd.org=20
=
href=3D"mailto:freebsd-users at uk.freebsd.org">freebsd-users at uk.freebsd.org=
</A>=20
</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Sent:</B>=20
Wednesday, February 05, 2003 6:51 PM</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Subject:</B>=20
Re: Sendmail</DIV>
<DIV><BR></DIV>Hiya,<BR><BR>Setting up a smart host means that =
the=20
host you nominate will receive all mail that the localhost =
doesn't=20
know how to deal with. What you need to find out is why your =
local=20
host thinks that the mail2 host is the right one to contact. =
If this=20
is a problem that just exists on the local host, try doing an =
MX=20
nslookup from that localhost for the domain netsite.co.uk and =
see what=20
gets sent back.<BR><BR>If that returns the smtp host, you can =
rule out=20
DNS as a source of the error. You then need to do a rules test =
to see=20
which rule is deciding that it needs to contact mail2. This =
might pick=20
up a misconfigured mailer, or similar. You might want to run =
sendmail=20
-d35.9 to see what macros are being set at startup. If a mail2 =
host=20
can be seen, there is definitely a misconfiguration of =
sendmail=20
somewhere.<BR><BR>There may be a number of files in which =
mail2 could=20
be configured into.<BR><BR>Cheers,<BR><BR>Jon<BR><BR>Abdul =
Salam.=20
Netsite Ltd wrote:<BR>
<BLOCKQUOTE=20
cite=3Dmid031501c2cd31$dff82b70$3b01a8c0 at nslocal.netsite.co.uk =
type=3D"cite">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<DIV><FONT face=3DArial size=3D2>Hi John,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the reply. But, =
I still not=20
succeeded in this. I think this has got nothing to do with =
either=20
apache or php configurations. Looks like a pure =
UNIX sendmail=20
issue. It is not sending mail from "mail" command. =
Even=20
there, it is NOT displaying any errors. I added my mail =
server=20
name as "Smart" relay host in sendmail.cf and now, it =
looks=20
like it is using the real mail server for relay, which is=20
smtp.mydomain.com. But, still I could see the same error =
message in=20
the log file. I have added an entry for the =
"smtp.mydomain.com" in=20
/etc/hosts aswell. Can anybody help me in this.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: =
5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none">-----=20
Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt =
arial; font-stretch: normal; font-size-adjust: none; =
moz-background-clip: initial; moz-background-origin: =
initial"><B>From:</B>=20
<A title=3Djon at trojan-heroes.co.uk=20
href=3D"mailto:jon at trojan-heroes.co.uk">Jon Mercer</A> =
</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>To:</B>=20
<A title=3Dabdul at netsite.co.uk=20
href=3D"mailto:abdul at netsite.co.uk">Abdul Salam. Netsite =
Ltd</A>=20
</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Cc:</B>=20
<A title=3Dfreebsd-users at uk.freebsd.org=20
=
href=3D"mailto:freebsd-users at uk.freebsd.org">freebsd-users at uk.freebsd.org=
</A>=20
</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Sent:</B>=20
Tuesday, February 04, 2003 7:36 PM</DIV>
<DIV=20
style=3D"FONT: 10pt arial; font-stretch: normal; =
font-size-adjust: none"><B>Subject:</B>=20
Re: Sendmail</DIV>
<DIV><BR></DIV>This sounds like a sendmail configuration =
error,=20
although I've also seen problems myself with php where it =
always=20
sets the sender to <A =
href=3D"mailto:me at localhost">me at localhost</A>.=20
That said, DSN 4.0.0 (persistent transient failure - RFC =
1893)=20
isn't that happening, just a result of a perfectly legal =
relay=20
attempt to a box that doesn't exist!<BR><BR>Abdul Salam. =
Netsite=20
Ltd wrote:<BR>
<BLOCKQUOTE=20
=
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
<DIV><FONT face=3DArial size=3D2>Hi there,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a FreeBSD =
running apache=20
along with php. But, when I am not able to send any =
mails using=20
php, though there is no error displayed on the web page. =
The php=20
and apache configurations seems to be right. All mails =
are still=20
available on the queue and the /var/log/maillog has the=20
following message</FONT></DIV></BLOCKQUOTE>The mail() =
function in=20
php doesn't return errors retrieved from the mail =
subsystem, which=20
is very annoying. Sendmail thinks the box mail2 is down so =
will=20
queue the message until it is too old (probably configured =
as 5=20
days)<BR><BR>
<BLOCKQUOTE=20
=
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
sendmail[29496]=20
to <A =
href=3D"mailto:abdul at netsite.co.uk">abdul at netsite.co.uk</A>=20
etc.. etc.... relay=3Dmail2.mydomain.co.uk., =
dsn=3D4.0.0,=20
stat=3DDeffered, Operation timed out with =
mail2.mydomain.co.uk=20
</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE>It's well worth =
trying:<BR><BR>$=20
sendmail -v -bt <BR>> 3,0 <A =
class=3Dmoz-txt-link-abbreviated=20
=
href=3D"mailto:abdul at netsite.co.uk">abdul at netsite.co.uk</A><BR><BR>And=20
seeing where in the ruleset it is getting in a muddle. It =
sounds=20
like an attempted (e)smtp to the mail2 host, which will be =
configured somewhere within sendmail.<BR><BR>
<BLOCKQUOTE=20
=
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<DIV><FONT face=3DArial size=3D2>During set-up I don't =
remember=20
mentioning mail2.mydomain.co.uk anywhere and our mail =
server is=20
smtp.mydomain.co.uk rather than mail2. The MX records on =
the DNS=20
is pointed to this. I am not sure, where should I enter =
the mail=20
server name, if at all I want to do it. Any help with =
this will=20
be appreciated.</FONT></DIV></BLOCKQUOTE>If you didn't =
configure=20
sendmail yourself, there could be a piece of =
misconfiguration=20
happening somewhere, and tracking down where can be a bit =
of a=20
pain in the *rse. Depends on whether sendmail was =
configured with=20
the m4 macros, or if it was hacked in the sendmail.cf. =
First=20
things first, doa cheack of all the files in /etc/mail to =
see if=20
there is something obvious.<BR><BR>
<BLOCKQUOTE=20
=
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
type=3D"cite">
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Cheers!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
=
<DIV> </DIV></BLOCKQUOTE>Jon<BR><BR></BLOCKQUOTE></BLOCKQUOTE></BLOC=
KQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>=
------=_NextPart_000_0456_01C2CDDF.45091760--
More information about the Ukfreebsd
mailing list