Re: Apache->PHP-mail()->sendmail problem Debian 3.1



Nico Kadel-Garcia wrote:


"Bengt Samuelsson" <bengt@xxxxxxxxxxxxxxxx> wrote in message
news:Xns97AD2056B8349pdp8dec@xxxxxxxxxxxxxxxxx
Hi!

I can´t send mail from my webserver!
I CAN send mail all ather ways thrue sendmail.
Even 'gethostbyname()' don´t work!

I run Apache 1.3.3
PHP 4.3.0
sendmail 8.13.4

Something special to lock after?

Please send a copy to bengt@xxxxxxxxx too!

73 dé Bengt

You've neglected to say which Linux release you are using,
I am running Debian 3.1

and your network configuration.
I run in a small local network .sm7jqb.lan

Is sendmail actually running?
Yes sendmail is running.

Can the machine send mail to itself
Now we are talking bissnis :)
I had problem ti set up Kmail to use sendmail localy, but it goes fine to
use 'smtp.sm7jqb.lan' as I do from my XP-box.
'mail.sm7jqb.lan' -> 44.140.249.65 the same box as localhost -> 127.0.0.1

locally?

Are there messages in /var/log/maillog about it?
Yes!
Apr 24 17:09:27 sm7jqb sendmail[6003]: k3OF9R8g006003:
from=www-data, size=81, class=0, nrcpts=0,
msgid=<200604241509.k3OF9R8g006003@xxxxxxxxxxxxxxxxxxx>,
relay=www-data@localhost

from this code
<?php
if ( mail('apache@xxxxxxxxx','Testmail !!','Hej, bara testar',
'From:bengt@xxxxxxxxx') )
print "<br />Skickade epost";
else
print "<br />Skickade INTE epost";
?>
and I got "Skickade INTE epost"

What do your /etc/sendmail/*.mc files say?
it is /etc/mail/sendmail.mc
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.4-3sarge1 2006-03-22 22:41:17 cowboy Exp
$')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
define(`confDOMAIN_NAME', `sm7jqb.dnsalias.com')dnl
define(`SMART_HOST',`mail.tele2.se')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL LOGIN PLAIN')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
FEATURE(`no_default_msa')dnl
Addr=::1')dnl
dnl define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
undefine(`UUCP_RELAY')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`confAUTH_OPTIONS', `A')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
FEATURE(access_db)
FEATURE(`greet_pause', `1000')dnl 1 seconds

dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`uucp')dnl
Cwlocalhost.localdomain dnl


--
73 dé SM7JQB
.



Relevant Pages

  • No AUTH available / No secret found in database
    ... We are using Sendmail 8.13.4/8.13.4 and Cyrus-SASL 2.1.19. ... authentication configuration information to the .mc file, ... Somehow, I managed to add something else to the configuration, either ... dnl # General defines ...
    (comp.mail.sendmail)
  • Re: FC5 boot process, sendmail and sm_client???
    ... The problem occurs when sendmail tries to determine its fully- ... dnl # Uncomment and edit the following line if your outgoing mail needs to ... Since you lied to sendmail about your system's fully-qualified DNS ... Add any other local users (and their ISP mail account user IDs) you ...
    (Fedora)
  • Re: Choosing to refuse incoming mail to
    ... Mike Brudenell wrote: ... To make sendmail reject unqualified hostnames in *.mc file: ... My thanks to Andrzej Adam Filip for suggesting the above but, ... dnl this code checks for user@host where host is not a FQHN. ...
    (comp.mail.sendmail)
  • Re: Help Getting Roots email to recipient
    ... I guess the fact that my ISP's mail servers are accepting my ... that not accepting mail by unresolvable domain ... See how that feature is commented in the sendmail.mc Fedora's Sendmail ... dnl # protect yourself from spam. ...
    (Fedora)
  • Re: sendmail domain name
    ... Assuming that your SMTP is sendmail, you need to masquerade your ... dnl # The following example makes mail from this host and any additional ...
    (RedHat)