LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to recieve mail without third party mail server (https://www.linuxquestions.org/questions/linux-networking-3/how-to-recieve-mail-without-third-party-mail-server-29725/)

marsonist 09-06-2002 08:44 AM

How to recieve mail without third party mail server
 
I have a DSL internet connection and have registered with no-ip.com to track my dynamic ip address. I have sendmail setup and can send e-mail from my computer to the outside world, but what do I have to setup to have any e-mail sent to marsonist.servehttp.com recieved by my computer?

acid_kewpie 09-06-2002 08:53 AM

well what have you done so far? i sendmail listening to your external interface as well? (see notes in sendmail.mc), is the right kind of relay setup up? do you have any useful errors in /var/log/maillog?

marsonist 09-06-2002 09:06 AM

shooting in the dark
 
I've never worked with sendmail before, so I've just been playing around with different settings. This is what I have so far:

I have steve.local (machine's internal domain) marsonist.servehttp.com and localhost listed as internal domains--- without marsonist.servehttp.com listed I wasn't able to forward local user traffic with that domain. It would just be stuck in queue.

I have my domain masquerading and outgoing domains setup so that all mail comes from marsonist.servehttp.com

I also have my spam control to allow mail from the above domain.

I've been using webmin to set it up. Maybe that's a mistake, but as a first time user of sendmail I thought it might help.

no-ip.com asks for an mx address to send the mail to, but I'm not sure what that is either.

Thanks for your quick response.:)

Steve

acid_kewpie 09-06-2002 09:21 AM

well your MX address is your mail server address. but before that you will need to ensure that sendmail is setup to a) listen externally and b) accept mail TO you, not just FROM you. for example in /etc/mail/access you should have something like

localhost RELAY
domain.com RELAY

"RELAY" can also be "OK" if you're only using one mailserver.
the localhost entry should already be there. then you'll need to set the right kind of relay method in /etc/mail/sendmail.mc so i'd suugest making sure

FEATURE(access_db)dnl

is in there somewhere. in order to recieve mail you also need to add your domain to the local-host-names file, and after that thigsn *should* start working, keep sending test messages and looking at maillog...

marsonist 09-06-2002 09:44 AM

applying changes now
 
I'm making some of those changes as we speak. unfortunately I don't have a /etc/mail/sendmail.mc nor any sendmail file in that directory. I'm looking for a similarly functioning file...we'll see.

I find it interesting that not a single test mail has produced an error on either side. I can send a mail from hotmail and it just gets dropped. No error from hotmail, and now error in my logs. Slightly less than helpful.

Thanks again for the help.

Steve

marsonist 09-06-2002 10:22 AM

hmmmm
 
It seems that sendmail.mc is named linux.mc on my system (If not then I just changed the wrong config :-) Unfortunately still no dice.I have no-ip settup with marsonist.servehttp.com as my MX. That's what I have in my local-host-names file (along with localhost and steve.local) As always no evidence of anything going wrong in my mail log or from hotmail.

Any other thoughts?

Thanks
Steve

marsonist 09-06-2002 10:33 AM

oops :-)
 
I remembered that stopping and starting my sendmail services after such changes might help, and indeed it did.

It seems as though everything is up and working.

You're a godsend.

Thanks so much for the help.
Steve

acid_kewpie 09-06-2002 05:03 PM

kickass! Problems like these are pretty handy really, i got sendmail working and in the process fiddled with a few dozen different things, but i couldn't have told you what they were until i reasarched it again know to actaully find out what the bits i did the were useful were!


All times are GMT -5. The time now is 02:48 AM.