Sendmail

Abdul Salam. Netsite Ltd abdul at netsite.co.uk
Wed Feb 5 16:16:01 GMT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0312_01C2CD31.DFDE3AD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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_0312_01C2CD31.DFDE3AD0
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 John,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the reply. But, I still not =
succeeded in=20
this. I think this has got nothing to do with either apache or php=20
configurations. Looks like a pure UNIX&nbsp;sendmail issue.&nbsp;It is =
not=20
sending mail from "mail"&nbsp;command. Even there, it is NOT displaying =
any=20
errors. I added my mail server name&nbsp;as "Smart" relay host in =
sendmail.cf=20
and now, it looks 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 the =
log=20
file. I have added an entry for the "smtp.mydomain.com" in /etc/hosts =
aswell.=20
Can anybody help me in this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=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>Cc:</B> <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 style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, February 04, =
2003 7:36=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Sendmail</DIV>
  <DIV><BR></DIV>This sounds like a sendmail configuration error, =
although I've=20
  also seen problems myself with php where it always sets the sender to =
<A=20
  href=3D"mailto:me at localhost">me at localhost</A>. That said, DSN 4.0.0 =
(persistent=20
  transient failure - RFC 1893) isn't that happening, just a result of a =

  perfectly legal relay attempt to a box that doesn't =
exist!<BR><BR>Abdul Salam.=20
  Netsite Ltd wrote:<BR>
  <BLOCKQUOTE =
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>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>I have a FreeBSD running apache =
along with php.=20
    But, when I am not able to send any mails using php, though there is =
no=20
    error displayed on the web page. The php and apache configurations =
seems to=20
    be right. All mails are still available on the queue and the=20
    /var/log/maillog has the following =
message</FONT></DIV></BLOCKQUOTE>The mail()=20
  function in php doesn't return errors retrieved from the mail =
subsystem, which=20
  is very annoying. Sendmail thinks the box mail2 is down so will queue =
the=20
  message until it is too old (probably configured as 5 days)<BR><BR>
  <BLOCKQUOTE =
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
  type=3D"cite">
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; sendmail[29496] =
to <A=20
    href=3D"mailto:abdul at netsite.co.uk">abdul at netsite.co.uk</A> etc.. =
etc....=20
    relay=3Dmail2.mydomain.co.uk., dsn=3D4.0.0, stat=3DDeffered, =
Operation timed out=20
    with mail2.mydomain.co.uk </FONT></DIV>
    <DIV>&nbsp;</DIV></BLOCKQUOTE>It's well worth trying:<BR><BR>$ =
sendmail -v -bt=20
  <BR>&gt; 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 =
seeing=20
  where in the ruleset it is getting in a muddle. It sounds like an =
attempted=20
  (e)smtp to the mail2 host, which will be configured somewhere within=20
  sendmail.<BR><BR>
  <BLOCKQUOTE =
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 =
mentioning=20
    mail2.mydomain.co.uk anywhere and our mail server is =
smtp.mydomain.co.uk=20
    rather than mail2. The MX records on the DNS is pointed to this. I =
am not=20
    sure, where should I enter the mail server name, if at all I want to =
do it.=20
    Any help with this will be appreciated.</FONT></DIV></BLOCKQUOTE>If =
you didn't=20
  configure sendmail yourself, there could be a piece of =
misconfiguration=20
  happening somewhere, and tracking down where can be a bit of a pain in =
the=20
  *rse. Depends on whether sendmail was configured with the m4 macros, =
or if it=20
  was hacked in the sendmail.cf. First things first, doa cheack of all =
the files=20
  in /etc/mail to see if there is something obvious.<BR><BR>
  <BLOCKQUOTE =
cite=3Dmid012801c2cc3d$cd8322f0$3b01a8c0 at nslocal.netsite.co.uk=20
  type=3D"cite">
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Cheers!</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>-Abdul</FONT></DIV>
    <DIV>&nbsp;</DIV></BLOCKQUOTE>Jon<BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0312_01C2CD31.DFDE3AD0--





More information about the Ukfreebsd mailing list