LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2003, 11:56 PM   #1
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Rep: Reputation: 0
Unhappy sendmail again


Hi?
i already configure sendmail using webmin, when i run it, i only can send an email to local user that's mean user in my box only, when i try to retrieve an email from another computer using outlook express, it's failed. can anyone tell me what the posibble cause?
 
Old 07-14-2003, 12:15 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check /var/log/maillog as you try to send an email and let us know what it says

To retrieve mail from your linux system has nothing to do with sendmail

If you have mail on your system and you want to access it from another machine you should run pop3s or imaps. then configure outlook express to connect to the pop or imap server on the secure port and you can get your mail.


To have people send mail to you or a user on your machine by sending it to your machine you need to have the sendmail smtp server listening on port 25

check this with telnet


telnet yourmachinenameoripaddress 25

you should get a server response


To send mail to someone on the internet using your linux box as a mail server you must configure sendmail as an smtp relay server.

Last edited by DavidPhillips; 07-14-2003 at 12:18 AM.
 
Old 07-14-2003, 01:09 AM   #3
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
thanx 4 ur help.
actually i forgot to tell u my current situation,
now, i'm in the middle of build up mail server for my company, my company using win2k server with domain mydomain.com.my (unregistered) so right now i dont want to interupt the current system so i configure my linux box as prosysrv.test.com. so i want to test retrieve an email for account myname@proxysrv.test.com from machine using win2k in domain mydomain.com.my, so i configure outlook express using pop3 and smtp,
but icannot retrieve my email, can u tell me how to run pop3s.
as ur suggestion to try telnet but i got this message as below

telnet: connect to address 192.168.128.4: Connection refused
 
Old 07-14-2003, 02:22 AM   #4
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
hi!
from my outlook express, when i try to retrieve email from mail server the error as below occured:

The connection to the server has failed. Account 'Testing', Server: '192.168.128.4', Protocol: POP3, Port : 110 , Secure (SSL) : No, Socket error : 10054, Error number : 0x800CCC0E
 
Old 07-14-2003, 03:41 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if it's installed you just start it up like this

chkconfig pop3s on

now setup the mail client to connect to the server on the secure port, port 995, not 110 and make sure it's not firewalled. (see firewall rules below)



telnet port 25 fails

this means the sendmail server is not listening to port 25 (you need to reconfigure sendmail), or it is blocked by a firewall (allow connections to port 25)


allow connections for secure pop3 and smtp


IPTABLES=/sbin/iptables

$IPTABLES -N tcp_packets

$IPTABLES -A INPUT -p TCP -i eth0 -j tcp_packets
$IPTABLES -A INPUT -m limit --limit 3/minute --limit-burst 3 -j LOG --log-level DEBUG --log-prefix "IPT INPUT packet died: "

$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 995 -j ACCEPT
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 25 -j ACCEPT
$IPTABLES -A tcp_packets -p TCP -j DROP


Last edited by DavidPhillips; 07-14-2003 at 03:52 AM.
 
Old 07-14-2003, 03:48 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
test to see if the services are listening


netstat -lnp | grep :995
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 31372/xinetd

netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 32312/master


If they are listening and you can't connect then it's likely due to the firewall or wrong ip address.

test the connection with ping.


Last edited by DavidPhillips; 07-14-2003 at 03:50 AM.
 
Old 07-14-2003, 04:11 AM   #7
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
thanx a lot

now i already solved the problem, i'm very appreciated ur help, hope u willing to give me a hands next time i got the problem
thanx
 
Old 07-14-2003, 04:27 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
How did you fix it, other people may have the same problem.
 
Old 07-14-2003, 05:40 AM   #9
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
i forgot several configuration,

1) i forgot tu enable ipop3 service
2) i forgot about my firewall configuration

so i just reconfigure all those thing, my sendmail working properly

so thanx 4 ur help
 
Old 07-14-2003, 11:34 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
cool
 
Old 07-16-2003, 12:17 AM   #11
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
just now i configured my sendmail server @mailserver.com become relay for another mail server @mydomain.com, when i try to send an email from client using outlook ,an error occured said,
the msg could not be sent becoz one of the recipients was rejected by the server. the rejected address was <me@mailserver.com>.........serverresponse 550 55.1........
 
Old 07-16-2003, 03:13 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Check the file /var/log/maillog on the server
 
Old 07-16-2003, 04:00 AM   #13
jai_ts
LQ Newbie
 
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
after i read the log file, i saw the problem is user unknown, so if i want to send an email to another user registered in another mail server also another domain differ with my mail server using my linux box account, how
 
Old 07-16-2003, 11:17 AM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
in the file /etc/aliases add an entry like this..

fred: fred@hisdomain.com

then run this..

sendmail -bi



mail received that has the address fred@yourdomain.com will be sent to fred@hisdomain.com

Last edited by DavidPhillips; 07-16-2003 at 11:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 03:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 02:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 10:57 PM


All times are GMT -5. The time now is 12:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration