Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
on both machines try- 'echo $hostname | /usr/sbin/sendmail -v my@email.com' and compare the output and post it here, also what do your logs on the debian machine say and is sendmail actually currently running?
@allegator ~]$ echo $HOSTNAME | /usr/sbin/sendmail -v my@email.com
WARNING: local host name (allegator) is not qualified; see cf/README: WHO AM I?
my@email.com... Connecting to [127.0.0.1] via relay...
220 allegator ESMTP Sendmail 8.14.3/8.13.8; Fri, 21 May 2010 12:56:40 -0400
>>> EHLO allegator
250-allegator Hello localhost [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:<champ@allegator> SIZE=10 AUTH=champ@allegator
250 2.1.0 <mp@allegator>... Sender ok
>>> RCPT To:<my@email.com>
>>> DATA
250 2.1.5 <my@email.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 o4LGuedB006474 Message accepted for delivery
my@email.com... Sent (o4LGuedB006474 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 allegator closing connection
allegator ~]$
Broken one(Deb)::
Code:
test:~# echo $HOSTNAME | /usr/sbin/sendmail -v my@email.com
WARNING: local host name (test) is not qualified; see cf/README: WHO AM I?
my@email.com... Connecting to [127.0.0.1] via relay...
220 test ESMTP Sendmail 8.14.3/8.13.8; Fri, 21 May 2010 12:58:05 -0400
>>> EHLO test
250-test Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@test> SIZE=5
250 2.1.0 <root@test>... Sender ok
>>> RCPT To:<my@email.com>
>>> DATA
250 2.1.5 <my@email.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
421 4.3.0 collect: Cannot write ./dfo4LGw5VB008636 (bfcommit, uid=0, gid=107): Permission denied
>>> QUIT
my@email.com... Deferred: 421 4.3.0 collect: Cannot write ./dfo4LGw5VB008636 (bfcommit, uid=0, gid=107): Permission denied
Closing connection to [127.0.0.1]
test:~#
Last edited by knockout_artist; 05-21-2010 at 12:05 PM.
The problem is on the deferred line, the sendmail daemon doesn't have correct permissions to write to a directory that it needs.
Check /tmp, /var/tmp, /var/spool/mqueue, and /var/mail. Sendmail needs to be able to write to those locations (and it sounds silly but make sure /var or / isn't full)
Slowness in sendmail I've found 9/10 times is related to dns. Check your resolv.conf settings and make sure your dns servers resolve both your local machine name and the names of machines connecting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.