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 |
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.
|
 |
07-13-2003, 10:56 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Rep:
|
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?
|
|
|
07-13-2003, 11:15 PM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
07-14-2003, 12:09 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-14-2003, 01:22 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-14-2003, 02:41 AM
|
#5
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
07-14-2003, 02:48 AM
|
#6
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
07-14-2003, 03:11 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-14-2003, 03:27 AM
|
#8
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
How did you fix it, other people may have the same problem.
|
|
|
07-14-2003, 04:40 AM
|
#9
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-14-2003, 10:34 AM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
cool
|
|
|
07-15-2003, 11:17 PM
|
#11
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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........
|
|
|
07-16-2003, 02:13 AM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Check the file /var/log/maillog on the server
|
|
|
07-16-2003, 03:00 AM
|
#13
|
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur
Distribution: Redhat Linux 9.0
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-16-2003, 10:17 AM
|
#14
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:27 AM.
|
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
|
|