LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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-13-2003, 11:15 PM   #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-13-2003 at 11:18 PM.
 
Old 07-14-2003, 12: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, 01: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, 02: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 02:52 AM.
 
Old 07-14-2003, 02: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 02:50 AM.
 
Old 07-14-2003, 03: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, 03: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, 04: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, 10: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-15-2003, 11:17 PM   #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, 02: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, 03: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, 10: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 10: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 07:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 02:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 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