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

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

Post by Bengt Samu » Sun, 23 Apr 2006 10:12:44


Hi!

I can send mail from my webserver!
I CAN send mail all ather ways thrue sendmail.
Even 'gethostbyname()' don 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 XXXX@XXXXX.COM too!

73 d?Bengt
 
 
 

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

Post by Nico Kadel » Sun, 23 Apr 2006 23:01:11


You've neglected to say which Linux release you are using, and your network
configuration. Is sendmail actually running? Can the machine send mail to
itself locally? Are there messages in /var/log/maillog about it? What do
your /etc/sendmail/*.mc files say?

 
 
 

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

Post by Bengt Samu » Wed, 26 Apr 2006 06:39:28


I am running Debian 3.1

I run in a small local network .sm7jqb.lan

Yes sendmail is running.

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


Yes!
Apr 24 17:09:27 sm7jqb sendmail[6003]: k3OF9R8g006003:
from=www-data, size=81, class=0, nrcpts=0,
msgid=< XXXX@XXXXX.COM >,
relay=www-data@localhost

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

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