•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 456,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,636 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 7727 | Replies: 4
![]() |
| |
•
•
Join Date: Aug 2003
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, can anyone help me about a problem that I have of using Sendmail and Squirrelmail.
Squirrelmail is using MTA of sendmail. Somehow I'm only able to send mail out but can't receive mail from the outside source. I did try to go into /etc/mail/sendmail.mc and comment out the following line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
That is, place a dnl in front so it looks like the following:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail
Then I restart sendmail. (/etc/init.d/sendmail/restart)
Somehow, I'm still not able to receive any mail from outside source but can only receive local email.
Btw.. i'm using RH 9.0.
If anyone have any clue how to solve my sendmail problem.. please do help. Thank You.
Squirrelmail is using MTA of sendmail. Somehow I'm only able to send mail out but can't receive mail from the outside source. I did try to go into /etc/mail/sendmail.mc and comment out the following line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
That is, place a dnl in front so it looks like the following:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail
Then I restart sendmail. (/etc/init.d/sendmail/restart)
Somehow, I'm still not able to receive any mail from outside source but can only receive local email.
Btw.. i'm using RH 9.0.
If anyone have any clue how to solve my sendmail problem.. please do help. Thank You.
•
•
Join Date: Aug 2003
Location: Virginia
Posts: 10
Reputation:
Rep Power: 6
Solved Threads: 0
#2
Aug 27th, 2003
•
•
Join Date: Aug 2002
Posts: 19
Reputation:
Rep Power: 7
Solved Threads: 0
first, check netstat -an to see if sendmail is listening on port 25 for 0.0.0.0 or at least your public address (or private if you're behind a router/gateway)
second, check the error that you're getting when you don't get the mail
you might need to add a Cwhost line in sendmail.cf where host is the hostname you are receiving mail for (after that HUP sendmail)
second, check the error that you're getting when you don't get the mail
you might need to add a Cwhost line in sendmail.cf where host is the hostname you are receiving mail for (after that HUP sendmail)
•
•
Join Date: Oct 2003
Location: Saint Petersburg, Russia
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
open up a terminal and do this:
tail -f /var/log/maillog
now, try to send mail to the machine from an outside source. do you see anything appearing in your mail log? if so, then it should identify the error (relaying denied, etc).
if you don't see anything at all, that means that sendmail isn't the problem, but your MX record on your domain might be.
do a whois on your domain:
whois domain.com
check the primary and secondary nameserver in this listing.
then do:
dig @primarynameserver.com yourdomain.com MX
check and see if the IP address listed for your MX record matches the public IP address of your server.
oh, and be sure that you have your domain listed in /etc/mail/local-host-names or sendmail will refuse the mail.
tail -f /var/log/maillog
now, try to send mail to the machine from an outside source. do you see anything appearing in your mail log? if so, then it should identify the error (relaying denied, etc).
if you don't see anything at all, that means that sendmail isn't the problem, but your MX record on your domain might be.
do a whois on your domain:
whois domain.com
check the primary and secondary nameserver in this listing.
then do:
dig @primarynameserver.com yourdomain.com MX
check and see if the IP address listed for your MX record matches the public IP address of your server.
oh, and be sure that you have your domain listed in /etc/mail/local-host-names or sendmail will refuse the mail.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
apple bbc cd cellphone choose code computer core debian dell desktop development drivers enterprise fedora fiji games gentoo gpl hardware ibm infrastructure install kernel laptop linux marketing microsoft mobile news novell open open source openoffice operating os palm preinstall red hat rhel security server source sun system ubuntu unix vista web windows
- PHP mail() (Sendmail) Problem :( (PHP)
- sendmail problem using cron (Shell Scripting)
- WMServer tools issue (PHP)
- Sendmail problem (*nix Software)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: how can i get my webserver running?
- Next Thread: Redhat 9.0 Server Recommendations


.. it's great so far. Thanks for helping me out though...
Hybrid Mode