Starting mysql and sendmail

Paul Lemmons Paul.Lemmons at tmcaz.com
Tue Aug 23 23:35:18 UTC 2005


Do a "less /var/spool/mqueue/qfj7NMnopO008242" and look at the header.
It may be able to give you more information. The file is not very big.
You could post it if you need another set of eyes to look at it.

-----Original Message-----
From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com] On Behalf Of Dotan Cohen
Sent: Tuesday, August 23, 2005 4:25 PM
To: For users of Fedora Core releases
Subject: Re: Starting mysql and sendmail

On 8/24/05, Paul Lemmons <Paul.Lemmons at tmcaz.com> wrote:
> By default, sendmail is setup to only allow connections from the local
> box. So, you are "spam safe" in that regard.
> 
> To change sendmail configuration you go to /etc/mail and edit the
> sendmail.mc file. Then do a make and a make install. Then a service
> sendmail restart.
> 
> A real easy test of sendmail is to use the:
> 
>    mail somebody at localdomain.com
> 
> command. It will pretty much only work on your local domain, though,
> unless your machine has both a DNS and Reverse DNS pointer on the
> internet. Most places validate that the sender is "real" before
> accepting email from them. They do this by looking at your IP address
> and doing a reverse lookup on it. If it finds you, you are let in. If
> not then your message is rejected.
> 
> You can look at the status of messages that have not been sent
> successfully by issuing the "mailq" command.
> 
> 

According to phpinfo():
sendmail_path	/usr/sbin/sendmail -t -i

If it is important, there is nothing to ssh into. I'm doing this on my
home box. When I commanded:
 echo "test email message" | mail -s "this is a test"
dotancohen at gmail.com
nothing was returned to the command line. But, no email was sent. In
TFA I found another varient, like this:
[root at localhost ~]# echo "hello dotan" | sendmail -v
dotancohen at gmail.com
dotancohen at gmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.13.4/8.13.4; Wed, 24 Aug
2005 01:49:50 +0300
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1],
pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root at localhost.localdomain> SIZE=12
AUTH=root at localhost.localdomain
250 2.1.0 <root at localhost.localdomain>... Sender ok
>>> RCPT To:<dotancohen at gmail.com>
>>> DATA
250 2.1.5 <dotancohen at gmail.com>... Recipient ok (will queue)
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 j7NMnopO008242 Message accepted for delivery
dotancohen at gmail.com... Sent (j7NMnopO008242 Message accepted for
delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
[root at localhost ~]#

but nothing in Gmail! I also tried with yahoo mail, which returned a
similar output as gmail, but also nothing in the inbox (or spambox). 
Mailq returned this:
[root at localhost ~]# mailq
                /var/spool/mqueue (5 requests)
-----Q-ID----- --Size-- -----Q-Time-----
------------Sender/Recipient-----------
j7NMnopO008242       12 Wed Aug 24 01:52 <root at localhost.localdomain>
                 (host map: lookup (gmail.com): deferred)
                                         <dotancohen at gmail.com>
j7NN2sRj008364       12 Wed Aug 24 02:05 <root at localhost.localdomain>
                 (host map: lookup (yahoo.com): deferred)
                                         <dotancohen at yahoo.com>
j7NLLon4007218        6 Wed Aug 24 00:24 <apache at localhost.localdomain>
                 (host map: lookup (dotancohen.com): deferred)
                                         <dotan at dotancohen.com>
j7NKuMAr006803        6 Tue Aug 23 23:59 <apache at localhost.localdomain>
                 (host map: lookup (dotancohen.com): deferred)
                                         <dotan at dotancohen.com>
j7NKu4nW006799        6 Tue Aug 23 23:58 <apache at localhost.localdomain>
                 (host map: lookup (dotancohen.com): deferred)
                                         <dotan at dotancohen.com>
                Total requests: 5
[root at localhost ~]#        

After spending some time STFA and STFW I have come to the conclusion
that the problem may be either SElinux related or due to the fact that
I have not set an email address for this machine (it all ends in
@localhost). Does this sound reasonable?

Thanks everybody. I really don't know where I'd be without you all.
Well, I do know, but I prefer not to think about that...

Dotan Cohen
http://lyricslist.com/lyrics/artist_albums/236/green_day.php
Green Day Song Lyrics

-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list