Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th February 2007, 15:22
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Sendmai can send mails but unable to receive mails

Hi folks,

slamd64-11.0
sendmail

The mail server can send mails but unable to receive mails. I don't have its front-end package such Evolution/Thunderbird installed. I ran command line to perform following test.

1)
# telnet localhost 25
....
etc.

send a mail to yahoo.com. Mail received without problem.

2)
Send a webmail from yahoo.com to this server. Failure.

warning:
Code:
<satimis@satimis.com>:
220.232.213.178 does not like recipient.
Remote host said: 550 5.7.1 <satimis@satimis.com>... Relaying denied
Giving up on 220.232.213.178.

--- Below this line is a copy of the message.

Return-Path: <satimis@yahoo.com>
Received: (qmail 84830 invoked by uid 60001); 15 Feb 2007 11:15:33 
-0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  
h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
  
b=o2Bp+ydrolZ2ztzWv6a3BgAKUwnjRoONkH7s8QQUKlLYPnVA/tH0O1GNB5d6ToaiC/0YLovdFzESj3HjEd1bgIQb5ehR5V6IbfZo9e5Cf9h1PS40xlUTaq08B9mEUG5SztuSnfzBm5ocYDV7jrZ/A+t+y5j9/D4vQ2M7lioWHbA=;
X-YMail-OSG: 
W7wktw8VM1nuEKFpUVsL2rOsdscNa.EoIKc8eUkqqp5ZIkRPUx28Gw1u5La6L2.uxsLsYVl03O6nEZtiVx5iQixlH77Tc7THCxEA805G0JaOCTuEf.9R42QqSCvTGq8BLajYLYpGt6EED5A-
Received: from [220.232.213.178] by web35207.mail.mud.yahoo.com via 
HTTP; Thu, 15 Feb 2007 19:15:32 CST
Date: Thu, 15 Feb 2007 19:15:32 +0800 (CST)
....
220.232.213.178 = external fixed IP address of the server
192.168.0.10 = internal IP of the server
domain = satimis.com

# echo '$=m' | sendmail -bt -d0.4
Code:
Version 8.13.8
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NETINET NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF
                SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG
Canonical name: localhost
 UUCP nodename: host
        a.k.a.: host
        a.k.a.: [127.0.0.1]
        a.k.a.: [192.168.0.10]
        a.k.a.: host.satimis.com

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = localhost
  (canonical domain name) $j = localhost
         (subdomain name) $m = <null>
              (node name) $k = host
========================================================

WARNING: local host name (localhost) is not qualified; see cf/README: WHO AM I?
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
Please advise where I have to edit on /etc/mail/sendmail.cf

TIA

B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 16th February 2007, 00:07
Johan Strange Johan Strange is offline
Junior Member
 
Join Date: Feb 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Go to etc/mail/sendmail.cf and look for

# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

change the loopback address to 192.168.0.10

then go to etc/mail/access and add your domain name with the entry RELAY

i.e.

satimis.com RELAY

I hope this helps you
Reply With Quote
  #3  
Old 16th February 2007, 08:32
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi Johan Strange,

Tks for your advice.

Quote:
Go to etc/mail/sendmail.cf and look for

# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

change the loopback address to 192.168.0.10
/etc/mail/sendmail.cf
Code:
...
# SMTP daemon options
O DaemonPortOptions=port=smtp, Addr=192.168.0.10, Name=MTA
#O DaemonPortOptions=Name=MTA
O DaemonPortOptions=Port=587, Name=MSA, M=E
There is no such line "
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA"

Added "O DaemonPortOptions=port=smtp, Addr=192.168.0.10, Name=MTA"
Comment out "O DaemonPortOptions=Name=MTA"

Quote:
then go to etc/mail/access and add your domain name with the entry RELAY

i.e.

satimis.com RELAY
# ls /etc/mail | grep access
Code:
access
access.db
# cat /etc/mail/access
No printout. An empty file

# find / -name access
Code:
/etc/mail/access
Where can I download a sample access file?


# which getmail
Code:
/usr/bin/getmail
getmail is also running on slamd64-11.0. What is it used for? Tks.


B.R.
satimis
Reply With Quote
  #4  
Old 16th February 2007, 19:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by satimis
/etc/mail/sendmail.cf
Code:
...
# SMTP daemon options
O DaemonPortOptions=port=smtp, Addr=192.168.0.10, Name=MTA
#O DaemonPortOptions=Name=MTA
O DaemonPortOptions=Port=587, Name=MSA, M=E
Are you sure you want to run Sendmail on port 587 instead of 25?

What's the output of
Code:
ls -la /etc/mail
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 17th February 2007, 04:22
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi falko,

Quote:
Are you sure you want to run Sendmail on port 587 instead of 25?
I haven't touched sendmail.cf. It is the default config file after installation. I want to run Sendmail on port 25. port 25 is working for sending mail but not for receiving mails.

I also found getmail running on this box. What is it for, receiving mails? Let Sendmail sending mails?

Quote:
What's the output of
Code:
ls -la /etc/mail
?
$ ls -la /etc/mail
Code:
total 268
drwxr-xr-x  2 root root   4096 2007-02-16 14:13 ./
drwxr-xr-x 47 root root   4096 2007-02-17 10:08 ../
-rw-r--r--  1 root root    486 2003-05-14 03:07 Makefile
-rw-r-----  1 root root      0 2002-06-02 03:57 access
-rw-r-----  1 root root  12288 2006-02-02 04:11 access.db
-rw-r--r--  1 root root    701 2001-01-04 05:18 aliases
-rw-r-----  1 root smmsp 12288 2006-02-02 04:11 aliases.db
-rw-r--r--  1 root root      0 2003-05-05 06:09 domaintable
-rw-r-----  1 root root  12288 2006-02-02 04:11 domaintable.db
-rw-r--r--  1 root root   5594 2006-10-01 19:16 helpfile
-rw-r--r--  1 root root     45 2003-05-05 06:36 local-host-names
-rw-r--r--  1 root root      0 2003-05-05 06:09 mailertable
-rw-r-----  1 root root  12288 2006-02-02 04:11 mailertable.db
-rw-r--r--  1 root root  60224 2007-02-16 14:13 sendmail.cf
-rw-r--r--  1 root root  60224 2007-02-16 14:13 sendmail.cf~
-rw-r--r--  1 root root   1448 2007-02-16 15:43 statistics
-rw-r--r--  1 root root  41114 2006-10-01 19:15 submit.cf
-rw-r--r--  1 root root     63 2003-05-05 06:36 trusted-users
-rw-r--r--  1 root root      0 2003-05-05 06:09 virtusertable
-rw-r-----  1 root root  12288 2006-02-02 04:11 virtusertable.db
B.R.
satimis
Reply With Quote
  #6  
Old 17th February 2007, 11:14
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

getmail is a tool to retrieve external and personal mail from a remote POP/IMAP mailbox to your local mailbox. Fetchmail is another variant doing the same thing. It has nothing to do with delivering or receiving email as in the MTA function. It's a user tool, that needs to be configured and started by/for a specific user. It's not related to your sendmail problem, for which I don't have an answer.
Reply With Quote
  #7  
Old 17th February 2007, 17:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Please add satimis.com to /etc/mail/local-host-names and restart Sendmail.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 17th February 2007, 18:19
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
Please add satimis.com to /etc/mail/local-host-names and restart Sendmail.
Hi falko,

Edited /etc/mail/local-host-names
adding "satimis.com"
(only one line on this file)

# /etc/rc.d/rc.sendmail restart
Code:
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
Sent a mail from yahoo.com to;
satimis@satimis.com

Mail arrived. Tks.

A further question;
on running
# /etc/rc.d/rc.sendmail restart
Code:
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
The 1st line hung there for some time. Then the 2nd line started, also hanging there for some time.

How to check the problem caused. TIA

B.R.
satimis
Reply With Quote
  #9  
Old 18th February 2007, 19:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by satimis
How to check the problem caused. TIA

B.R.
satimis
Please check your mail log.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 19th February 2007, 16:28
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by falko
Please check your mail log.
# tail /var/log/maillog
Code:
 
Feb 19 22:05:02 localhost sm-mta[2987]: starting daemon (8.13.8): SMTP+queueing@
00:25:00
Feb 19 22:05:02 localhost sm-msp-queue[2988]: My unqualified host name (localhos
t) unknown; sleeping for retry
Feb 19 22:06:02 localhost sm-msp-queue[2988]: unable to qualify my own domain na
me (localhost) -- using short name
Feb 19 22:06:02 localhost sm-msp-queue[2990]: starting daemon (8.13.8): queueing
@00:25:00
Feb 19 22:10:49 localhost sm-mta[2985]: My unqualified host name (localhost) unk
nown; sleeping for retry
Feb 19 22:11:49 localhost sm-mta[2985]: unable to qualify my own domain name (lo
calhost) -- using short name
Feb 19 22:11:49 localhost sm-mta[2986]: starting daemon (8.13.8): SMTP+queueing@
00:25:00
Feb 19 22:11:49 localhost sm-msp-queue[2987]: My unqualified host name (localhos
t) unknown; sleeping for retry
Feb 19 22:12:49 localhost sm-msp-queue[2987]: unable to qualify my own domain na
me (localhost) -- using short name
Feb 19 22:12:49 localhost sm-msp-queue[2989]: starting daemon (8.13.8): queueing
@00:25:00
root@host:~# ICE default IO error handler doing an exit(), pid = 3373, errno = 0
Tks


Edit:

After comment out the line "#127.0.0.1 localhost host", problem seems gone

$ cat /etc/hosts
Code:
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
#127.0.0.1 localhost host
192.168.0.10 host.satimis.com host

# End of hosts.

Following warnings has been existing sometimes on text scrolling at booting
Code:
<probing for PCIC:edit /etc/rc.d/rc.pcmcia>
/etc/rc.d/rc.d.inet1:line1 : eth_up: command not found
/etc/rc.d/rc.d.inet1:line2 : eth_up: command not found
/etc/rc.d/rc.d.inet1: line 255: eth_up: command not found
Where to look for the cause of those warning


B.R.
satimis

Last edited by satimis; 19th February 2007 at 18:44.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
I can't send Mails with my emailclient tom Installation/Configuration 6 22nd September 2006 00:22
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29
ISPConfig/Postfix - unable to send mail via Outlook Commdude Installation/Configuration 8 21st March 2006 02:24
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 23:09


All times are GMT +2. The time now is 06:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.