Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-28-2005, 07:16 PM
|
#1
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Rep:
|
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 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.
|
|
|
11-28-2005, 08:00 PM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
11-28-2005, 08:24 PM
|
#3
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
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?
|
|
|
11-29-2005, 04:45 AM
|
#5
|
Member
Registered: Apr 2003
Distribution: Red Hat
Posts: 37
Rep:
|
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.
|
|
|
11-30-2005, 10:48 AM
|
#6
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
Please help -- still not receive mail but send OK
bump
Last edited by fhleung; 11-30-2005 at 11:08 AM.
|
|
|
11-30-2005, 11:01 AM
|
#7
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
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
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 11:04 AM.
|
|
|
12-01-2005, 07:02 PM
|
#8
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
bump
|
|
|
12-01-2005, 07:42 PM
|
#9
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
12-02-2005, 11:39 AM
|
#10
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
mmm.... I didn't set Sendmail to allow relaying for the domain? How can I edit the config file to do this?
|
|
|
12-02-2005, 01:30 PM
|
#11
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
|
|
|
12-14-2005, 06:11 PM
|
#12
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Original Poster
Rep:
|
More info about open relay can be found here
http://ordb.org/faq/
|
|
|
All times are GMT -5. The time now is 05:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|