<skickat till e-postmottagare och diskussionsgrupp>
>>> Hi!
>>> I cant send mail from my webserver!
>>> I CAN send mail all ather ways thrue sendmail.
>>> Even 'gethostbyname()' dont work!
>>> I run Apache 1.3.3
>>> PHP 4.3.0
>>> sendmail 8.13.4
>>> Something special to lock after?
>>> 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,
> from this code
> <?php
> 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
--Quote:> 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