Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon

Links

XODOX
Impressum

#1: newbie: should I configure sendmail?

Posted on 2008-04-21 20:45:24 by r_ahimsa_m

Hello,
I am programming in PHP a website in Fedora Linux, which will send emails. I
think I should configure sendmail which I have installed. Is this true?
I tried to send e-mail:
à à à à echo "this is a test" | mailx -s test r_ahimsa_m@poczta.onet.pl
but no mail was received at r_ahimsa_m@poczta.onet.pl.
I have the service for sendmail marked to be executed in Linux. Does this
mean that my sendmail is not configured or there's a different reason? I
bought a book in which there's a chapter about sendmail configuration (MTA)
but I dont' understand it. Could you recommend me some page about sendmail
configuration? Do I need to configure other programs (MSA, DA, AA)?
Please help.
/RAM/

Report this message

#2: Re: newbie: should I configure sendmail?

Posted on 2008-04-21 23:07:47 by Andrzej Filip

"R.A.M." <r_ahimsa_m@poczta.onet.pl> wrote:
> I am programming in PHP a website in Fedora Linux, which will send
> emails. I think I should configure sendmail which I have installed. Is
> this true?
> I tried to send e-mail:
> à à à à echo "this is a test" | mailx -s test r_ahimsa_m@poczta.onet.pl
> but no mail was received at r_ahimsa_m@poczta.onet.pl.

In many situations sendmail should "auto-configure" itself.
Posting what "went wrong" during sending of a test message should help
to do small configuration fixes.

Post the relevant log entries generated by sendmail during delivery attempt.
[ I think the log is located in /var/log/maillog file on Fedora ]

> [...]

--
[pl>en Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
"Be *excellent* to each other."
-- Bill, or Ted, in Bill and Ted's Excellent Adventure
----
http://groups.google.com/groups/profile?user=anfi@onet.eu
http://groups.google.com/groups?selm=ohid6zw878@mary.fsf.hob by-site.com

Report this message

#3: Re: newbie: should I configure sendmail?

Posted on 2008-04-23 06:18:15 by r_ahimsa_m

Andrzej Adam Filip wrote:

> "R.A.M." <r_ahimsa_m@poczta.onet.pl> wrote:
>> I am programming in PHP a website in Fedora Linux, which will send
>> emails. I think I should configure sendmail which I have installed. Is
>> this true?
>> I tried to send e-mail:
>> echo "this is a test" | mailx -s test r_ahimsa_m@poczta.onet.pl
>> but no mail was received at r_ahimsa_m@poczta.onet.pl.
>
> In many situations sendmail should "auto-configure" itself.
> Posting what "went wrong" during sending of a test message should help
> to do small configuration fixes.
>
> Post the relevant log entries generated by sendmail during delivery
> attempt.
> [ I think the log is located in /var/log/maillog file on Fedora ]
>
>> [...]
>

This is tail of my maillog:

Apr 23 02:01:29 localhost sendmail[2150]: starting daemon (8.14.1):
SMTP+queueing@01:00:00
Apr 23 02:01:30 localhost sm-msp-queue[2159]: starting daemon (8.14.1):
queueing@01:00:00
Apr 23 03:12:35 localhost sendmail[2143]: alias database /etc/aliases
rebuilt by root
Apr 23 03:12:35 localhost sendmail[2143]: /etc/aliases: 76 aliases, longest
10 bytes, 765 bytes total
Apr 23 03:12:35 localhost sendmail[2148]: starting daemon (8.14.1):
SMTP+queueing@01:00:00
Apr 23 03:12:35 localhost sm-msp-queue[2157]: starting daemon (8.14.1):
queueing@01:00:00
Apr 23 06:16:04 localhost sendmail[3864]: m3N4G4DK003864: from=robert,
size=50, class=0, nrcpts=1,
msgid=<200804230416.m3N4G4DK003864@localhost.localdomain>,
relay=robert@localhost
Apr 23 06:16:04 localhost sendmail[3865]: m3N4G4ae003865:
from=<robert@localhost.localdomain>, size=371, class=0, nrcpts=1,
msgid=<200804230416.m3N4G4DK003864@localhost.localdomain>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 23 06:16:04 localhost sendmail[3865]: m3N4G4ae003865:
to=<r_ahimsa_m@poczta.onet.pl>, delay=00:00:00, mailer=esmtp, pri=30371,
dsn=4.4.3, stat=queued
Apr 23 06:16:04 localhost sendmail[3864]: m3N4G4DK003864:
to=r_ahimsa_m@poczta.onet.pl, ctladdr=robert (500/500), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30050, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (m3N4G4ae003865 Message accepted for delivery)

Please help.
/RAM/

Report this message

#4: Re: newbie: should I configure sendmail?

Posted on 2008-04-23 12:22:08 by Andrzej Filip

"R.A.M." <r_ahimsa_m@poczta.onet.pl> wrote:

> Andrzej Adam Filip wrote:
>
>> "R.A.M." <r_ahimsa_m@poczta.onet.pl> wrote:
>>> I am programming in PHP a website in Fedora Linux, which will send
>>> emails. I think I should configure sendmail which I have installed. Is
>>> this true?
>>> I tried to send e-mail:
>>> echo "this is a test" | mailx -s test r_ahimsa_m@poczta.onet.pl
>>> but no mail was received at r_ahimsa_m@poczta.onet.pl.
>>
>> In many situations sendmail should "auto-configure" itself.
>> Posting what "went wrong" during sending of a test message should help
>> to do small configuration fixes.
>>
>> Post the relevant log entries generated by sendmail during delivery
>> attempt.
>> [ I think the log is located in /var/log/maillog file on Fedora ]
>>
>>> [...]
>>
>
> This is tail of my maillog:
>
> [...]
> Apr 23 06:16:04 localhost sendmail[3865]: m3N4G4ae003865:
> from=<robert@localhost.localdomain>, size=371, class=0, nrcpts=1,
> msgid=<200804230416.m3N4G4DK003864@localhost.localdomain>, proto=ESMTP,
> daemon=MTA, relay=localhost.localdomain [127.0.0.1]
> Apr 23 06:16:04 localhost sendmail[3865]: m3N4G4ae003865:
> to=<r_ahimsa_m@poczta.onet.pl>, delay=00:00:00, mailer=esmtp, pri=30371,
> dsn=4.4.3, stat=queued
> [...]

0) What is reported by "mailq" command? [execute it as root]
It should report messages sendmail keeps in its queue.
1) Which delivery mode is configured in your sendmail.cf?
"grep DeliveryMode /etc/mail/sendmail.cf"
I suspect it may be set to queue (or deffered).

--
[pl>en Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
For every credibility gap, there is a gullibility fill.
-- R. Clopton
----
http://groups.google.com/groups/profile?user=anfi@onet.eu
http://groups.google.com/groups?selm=zvnhgo4d78@shawn.fsf.ho bby-site.com

Report this message

#5: Re: newbie: should I configure sendmail?

Posted on 2008-04-23 12:55:40 by r_ahimsa_m

Andrzej Adam Filip wrote:
> 0) What is reported by "mailq" command? [execute it as root]
> It should report messages sendmail keeps in its queue.

/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
m3N4G4ae003865 5 Wed Apr 23 06:16 <robert@localhost.localdomain>
(Warning: could not send message for past 4 hours)
<r_ahimsa_m@poczta.onet.pl>
Total requests: 1


> 1) Which delivery mode is configured in your sendmail.cf?
> "grep DeliveryMode /etc/mail/sendmail.cf"
> I suspect it may be set to queue (or deffered).

O DeliveryMode=background


Could you tell me please what should I change and where?
/RAM/

Report this message

#6: Re: newbie: should I configure sendmail?

Posted on 2008-04-23 13:05:19 by r_ahimsa_m

I would like to add one more thing:

/bin/hostname returns
localhost.localdomain
on my computer.
/etc/hosts contains:
127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6
Should I change it?
/RAM/

Report this message

#7: Re: newbie: should I configure sendmail?

Posted on 2008-04-23 13:12:22 by Andrzej Filip

"R.A.M." <r_ahimsa_m@poczta.onet.pl> wrote:

> Andrzej Adam Filip wrote:
>> 0) What is reported by "mailq" command? [execute it as root]
>> It should report messages sendmail keeps in its queue.
>
> /var/spool/mqueue (1 request)
> -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
> m3N4G4ae003865 5 Wed Apr 23 06:16 <robert@localhost.localdomain>
> (Warning: could not send message for past 4 hours)
> <r_ahimsa_m@poczta.onet.pl>
> Total requests: 1

Problem 1:
Your host uses "localhost.localdomain" as its FQDN (fully qualified
domain name). In "spam era" most host *will not* accept messages with
envelope sender address in such domain (robert@localhost.localdomain).
Change your FQDN host name to name with MX or A record in DNS.

First try change FQDN name using your distribution (Fedora) specific
configuration tools [it is the best way (but not the only one)].

>> 1) Which delivery mode is configured in your sendmail.cf?
>> "grep DeliveryMode /etc/mail/sendmail.cf"
>> I suspect it may be set to queue (or deffered).
>
> O DeliveryMode=background

It looks OK

> Could you tell me please what should I change and where?
> /RAM/

Fix "problem 1", restart sendmail, send new test message
and repeat the procedure from the begin to find if there
are other problems.

--
[pl>en Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
[He] took me into his library and showed me his books, of which he had
a complete set.
-- Ring Lardner
----
http://groups.google.com/groups/profile?user=anfi%40onet.eu
http://groups.google.com/groups?selm=tz6gknym78%40james.fsf. hobby-site.com

Report this message