You are here: Re: CONTinued: PHP + SENDMAIL = mail() « PHP Programming Language « IT news, forums, messages
Re: CONTinued: PHP + SENDMAIL = mail()

Posted by Jerry Stuckle on 06/06/05 03:06

Angelos wrote:
>>Are you sure it's a PHP.INI issue, or something else? For instance - Does
>>the domain localhost.localdomain actually exist? Is this server local to
>>you or on a webserver someplace? Do you have an MTA running on this host?
>>
>
> Jerry thanks for your reply,
> Actually I am not sure what I have to do...
> Server is a linux box in my LAN...
> I do not know what you mean when you ask if the localhost.localdomain exists
> ...
> and I don't know what is MTA or if I have to have it running ...
> Below are some lines from sendmail.mc ... Ihaven't configured anything
> there... so if you thing that I have to edit something , pls tell me by
> example.
>
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
> dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
> dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
> dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
> dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
> FEATURE(`accept_unresolvable_domains')dnl
> dnl FEATURE(`relay_based_on_MX')dnl
> LOCAL_DOMAIN(`localhost.localdomain')dnl
> dnl MASQUERADE_AS(`mydomain.com')dnl
> dnl FEATURE(masquerade_envelope)dnl
> dnl FEATURE(masquerade_entire_domain)dnl
> dnl MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
> dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
> MAILER(smtp)dnl
> MAILER(procmail)dnl
>
> Now... what could my domain be in a server at home ?
> How do i specify it ?
>
>

Angelos,

First of all, an MTA is a Mail Transfer Agent. That's what's
responsible for sending email across the internet. Some common ones are
sendmail, exim and (for windows) ArgoSoft Mail Server.

localhost.localdomain isn't a valid domain name. Many MTAs are
configured to reject invalid FROM: addresses as a SPAM prevention
measure. So it's very possible that the remote domain is rejecting the
mail because of the invalid FROM: address.

Also, to send the mail with the mail() command, you need access to an
MTA. This may be on your local system or it may be the MTA on your ISP
which you normally use to send mail.

Note: the latter is probably better, because many MTAs are also
configured to do a "reverse domain lookup" - they check to ensure you
are sending email from the domain you're using. For instance, if you
say the mail is from me@example.com, it ensures the mail is coming from
the mail host registered to example.com.

In either case, the php.ini file must be configured to use your MTA.
Each one is different.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация