Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Thanks, I will have a look at fetchmail. One thing how come my mail clients are unable to connect to my smtp server.
So I will need sendmail to send outgoing mail, then fetchmail to get the mail from internet address. Then a pop3 server to view mail in a mail client.
Is that right???
Originally posted by chamkila Thanks, I will have a look at fetchmail. One thing how come my mail clients are unable to connect to my smtp server.
So I will need sendmail to send outgoing mail, then fetchmail to get the mail from internet address. Then a pop3 server to view mail in a mail client.
Is that right???
Thanks again
I would guess that would depend upon your entire setup.
I set mine up in 1999, so if I remember correctly (the links should better better rememberers than I have):
sendmail will send mail to the internet and local accounts.
fetchmail will fetch mail from internet accounts and put into /var/spool/mail/<user>
procmail can take the mail in /var/spool/<user> and sort and deliver into specific mailboxes.
A mail client can access the user mail spool and their local mailboxes.
A pop3 server would allow some fetchmail service to access your mail over the internet.
If the mail is for your domain all mail will be routed to your machine (as set in your MX records), sendmail should recieve the mail and deliver it locally. You won't need fetchmail. Obviously you don't have a problem sending mail, but check you mail logs for anything coming in and being refused. Also post up your sendmail.cf maybe someone can spot something
Originally posted by fancypiper Sendmail only sends mail. Perhaps you need to fetchmail to get your email.
no no no no no this is wrong.
sendmail recieves mail on port 25 (the default SMTP port).
The issue is with the sendmail.mc file. There is a line that has to be changed to allow sendmail to recieve mail over the internet. In the file itself it acually says "uncomment this line if you want sendmail to recieve mail over the internet" is has an ip address in it "127.0.0.1", you have to either change that ip or comment out the line...i think i just changed the ip...dont really remember.
when u edit the sendmail.mc file you have to run the m4 command to generate a new sendmail.cf file.
Code:
#m4 sendmail.mc > sendmail.cf
make sure u backup your old sendmail.cf before replacing it with a new one just incase u mess something up.
I was unable to find any good docs on procmail, so could some please help me out with procmail, how the hell do you run it. Yes I did read the man pages.
honestly man, i dont know jack about senmail config files. i installed sendmail as it came with rh7.3, got the updated rpm from the rhn site, installed it, ran sendmail and i could send mail bout couldnt recieve it.
looked at the sendmail.mc file because looking at sendmail.cf is pointless as it is generated from sendmail.mc and sendmail.mc is easier to read, i saw that 1 line and changed it and also changed the bottom line to match my domain name ( i purchased one).
then it worked. procmail did its job and everything worked fine. even got imap to work with imp to give my server webmail capabilities (really nice stuff written in php).
also, make sure you arent running an open mail relay, sendmail is set up by default to not allow relaying. if you have an open mail relay, spammers will use your box to relay email to others all over the place and you box will be bogged down sending email out to unwated victims and u could get put on that spammer list. you can actually see these attempts in the log file.
basically im saying this: sendmail isnt hard to setup if you installed it with rh7.3, all u gotta do is edit like 2 lines in the sendmail.cf file, 3 tops and generate the new sendmail.cf
oh, i also used webmin to configure my servers now for convienence (but i still try to understand it the hard way and often look at the config files because i dont trust everything.)
using that is actually how i found out to change the line to get sendmail to recieve email because i would have never looked at the sendmail.mc file if i had not installed webmin.
Have you tried turning on the ipop3 daemon? if you do a "chkconfig --list" it might show you a listing for ipop3 if imap is installed. To turn it on just type in "chkconfig --level 35 ipop3 on" and it should work for you. I had the exact same problem and once I did that command, I was able to get mail. I don't know what the --level 35 part of the command does, but it was pointed out to me by someone here and I thought I should include it. Anyways, I hope that helps you out! Also, make sure that your firewall is set so you can have pop3 traffic going through it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.