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: <[email protected]>: 220.232.213.178 does not like recipient. Remote host said: 550 5.7.1 <[email protected]>... Relaying denied Giving up on 220.232.213.178. --- Below this line is a copy of the message. Return-Path: <[email protected]> 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
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
Hi Johan Strange, Tks for your advice. /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" # 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
Are you sure you want to run Sendmail on port 587 instead of 25? What's the output of Code: ls -la /etc/mail ?
Hi falko, 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? $ 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
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.
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; [email protected] 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
# 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 <[email protected]> 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