Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
I'm a linux n00b, or I wouldn't be posting in this board and I'd probably already know the answer to this question but here goes...
I have recently installed Fedora Core 1 on an intel box and sendmail has been configured by default. I've made some changes to my sendmail.mc file and merged with the sendmail.cf using the "m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf" command. Restarted sendmail but mail does not leave the box?
I've tried the telnet port 25 and get the following error...
telnet: connect to address xxx.xxx.xxx.xxx: Connection refused
telnet: Unable to connect to remote host: Connection refused
Tried nmap...
nmap -sS -p 20-2550 xxx.xxx.xxx.xxx
(The 2526 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
443/tcp open https
And the smtp port doesn't seem to be open? Any thoughts as to why my sendmail isn't working? NOTE: IPCHAINS and all other firewall software is disabled from startup.
have you checked your mail logs? mail log, is located in /var/log/maillog or if you have gui linux then go to system tools -> system logs -> maillog(once you open system logs) I am a newb myself running sendmail on FC1, do you have anything in your ~/mailqueue? type mailq in terminal to find out...If you are trying to send from remote box, like some other place on your network you must add to your /etc/mail/access file...Do you have anything special in your sendmail.mc file? if you send from remote machines you also must change line in sendmail.mc from DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl, also you don't have to do "m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf" if you restart sendmail via "service sendmail restart" it will recompile sendmail.cf for you anyways. Anyways I would love to help you out being that I know I had tons of trouble getting sendmail to work how I wanted it to, and could not have done it myself w/o lots of help from others. I think we just need a bit more information about your problem though.
Does this mean it's sending stuff to root? How do I access roots mailbox with mutt to verify?
Funny thing is this worked with Redhat 9? Does RH9 open up everything by default? Thank you very much for the direction, glad to hear I'm not the only one with sendmail problems Any additional thoughts?
of course if you notice this line only takes out 127.0.0.1, so you could erase but I dont like to erase in case I want to ever go back to default configuration without searching online for it. anways...
that is why port isn't open, then if you run that same nmap from origanal post your port should be open...
as far as it being sent to root, It appears to be the case according to your log file the last line, so what you can do is check directly in /var/mail/root, or type mail in terminal and you can see if your message is in there, obviosly both these require you to be logged on as root.
it also looks like your trying to send email from apache, some web page you have set up? well if so you might, have to add apache to /etc/mail/trusted-users not positive on that though. and as far as fetching your mail with mutt I can't help you I use dovecot myself, because its simplicity. If you have mutt configured correctly and running I think you should have to just put your options in to evolution or you favorite mail client.
I think your problem though is not with FC1 but the version of sendmail, sendmail has tightened up on security to help users keep there mail servers from the clutches of spammers. Which I must say is a good thing once you get it running, but a pain in the neck if you are like me (a newb) trying to figure out how to correctly configure sendmail so it works. heh.
Last edited by lildrummerboy; 07-26-2004 at 12:14 PM.
I also made a change to /etc/mail/trusted-users uncommenting the only line there. Thanks for all the technical/moral support, I think I have a better handle on Sendmail and it's configuration. nmap also shows the port as open now. Thanks a lot. hopefully this helps people trying to make PHP/Apache and Sendmail work together in the future
(The 1647 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
199/tcp open smux
445/tcp open microsoft-ds
783/tcp open hp-alarm-mgr
993/tcp open imaps
1024/tcp open kdm
1025/tcp open NFS-or-IIS
3128/tcp open squid-http
port 25 is closed
I have fedora core 2
and
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.0.10, Name=MTA')dnl
in my sendmail.mc
(that is a computer that connects from local network to the 192.168.0.1 mailserver)
anybody got any other ideeas why no smtpd is listening to 25 ?
thanx
you don't need smtpd, if you are using sendmail it does smtp if I am not mistaken, what you should do is change this
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.0.10, Name=MTA')dnl
to this...
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
and then if you only want 192.168.0.10 to be able to send out mail or whatever reason that is there you can add them to ~/mail/access
if you are using FC2 I do believe that would be /etc/mail/access (thats what it is in 1) anyways just give this a try and see what comes up. I am a newb myself but I do think this should work for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.