LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2005, 06:16 PM   #1
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Sendmail -- Can not receive mail


I am start learning how to configure sendmail, I found many posts with similar topic and they are quite helpful. Now I finish half of the settings, I able to send emails but not receive.

I comment out
Code:
#DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
and edit
Code:
dnl define(`SMART_HOST',`mail.myISP.com')
to let my ISP mail server to handle mails.

I am able to send mail by
Code:
echo hello |sendmail -v something@gmail.com
or squirrelmail interface. But I can not receive emails. Do I need to do more edit on the sendmail.mc ?

Please point out the problems. Thank you.
 
Old 11-28-2005, 07:00 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You have to allow relaying for your domain. Do not allow realying for any other domain, because someone could use your server as a relay for spam.
 
Old 11-28-2005, 07:24 PM   #3
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
How do I configure NOT allow relay for any other domains? Sorry I am quite new to sendmail config so I don't know much the syntax and features for.

Can anyone know the reasons not receive mail?
 
Old 11-28-2005, 07:42 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Here are a couple decent how to's on setting up Sendmail.
http://www.linuxjournal.com/article/5507
http://www.uwsg.iu.edu/usail/mail/configuration/

On the first one, setting up realying is about a 10th of the way down.
 
Old 11-29-2005, 03:45 AM   #5
ncorreia
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
Instead of commenting this:

Code:
    #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Use this:

Code:
    #DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
This way you'll have sendmail bound to all interfaces. You probably can't receive mail because sendmail is not listening on the right interface.

Hope this helps.
 
Old 11-30-2005, 09:48 AM   #6
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
Please help -- still not receive mail but send OK

bump

Last edited by fhleung; 11-30-2005 at 10:08 AM.
 
Old 11-30-2005, 10:01 AM   #7
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
Please help -- still not receive mail but send OK

I have google the problem and read the sendmail FAQ
http://www.sendmail.org/faq/section5.html#5.3.1.3
http://www.sendmail.org/~gshapiro/8....rtOptions.html

First of all I try send mail to myself
Code:
echo hello |sendmail -v  name@mydomain.com
and the mail still in the outgoing queue /var/spool/mqueue

Code:
MDeferred: Connection refused by mydomain.com.
Fs
$_localhost.localdomain [127.0.0.1]
$rESMTP
$swww.mydomain.com
${daemon_flags}
${if_addr}127.0.0.1
S<root@mydomain.com>
MDeferred: Connection refused by mydomain.com.
rRFC822; name@mydomain.com
RPFD:<name@mydomain.com>
H?P?Return-Path: <>
H??Received: from www.mydomain.com (localhost.localdomain [127.0.0.1])
        by www.mydomain.com (8.12.8/8.12.8) with ESMTP id jB17gPNw004491
        for <name@mydomain.com>; Thu, 1 Dec 2005 02:42:26 -0500
H??Received: (from root@localhost)
        by www.mydomain.com (8.12.8/8.12.8/Submit) id jB17gPBV004489
        for name@mydomain.com; Thu, 1 Dec 2005 02:42:25 -0500
Anyone know how to read above and see what error going on?
My sendmail.mc DAEMON_OPTIONS like

Code:
dnl define(`SMART_HOST',`mail.myisp.com')

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(`Port=submission, Name=MSA, M=Ea')dnl
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

MAILER(smtp)dnl
MAILER(procmail)dnl

Last edited by fhleung; 11-30-2005 at 10:04 AM.
 
Old 12-01-2005, 06:02 PM   #8
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
bump
 
Old 12-01-2005, 06:42 PM   #9
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Did you set Sendmail to allow relaying for your domain? If I remember right, I had the same problem the first time I setup Sendmail. After I set Sendmail to relay for my domain it worked.
 
Old 12-02-2005, 10:39 AM   #10
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
mmm.... I didn't set Sendmail to allow relaying for the domain? How can I edit the config file to do this?
 
Old 12-02-2005, 12:30 PM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Quote:
Originally posted by tangle
Here are a couple decent how to's on setting up Sendmail.
http://www.linuxjournal.com/article/5507
http://www.uwsg.iu.edu/usail/mail/configuration/

On the first one, setting up realying is about a 10th of the way down.
 
Old 12-14-2005, 05:11 PM   #12
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Original Poster
Rep: Reputation: 30
More info about open relay can be found here

http://ordb.org/faq/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't receive outside mail with sendmail joe.biz Linux - Software 3 10-05-2005 10:54 AM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 04:45 AM
Can't receive mail with sendmail rufassa Linux - Networking 7 11-05-2003 09:30 PM
Sendmail 8.11.2 Receive mail problem warath Linux - Networking 1 10-20-2001 03:17 PM
Can't get sendmail to receive mail schurma Linux - Networking 4 04-16-2001 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration