LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Postfix+fetchmail+DNS? (https://www.linuxquestions.org/questions/linux-networking-3/postfix-fetchmail-dns-139155/)

DavidHayes 01-27-2004 06:52 AM

Postfix+fetchmail+DNS?
 
Hi,
I have setup postfix to receive mail on port 25 and I am getting mail fine from my ISP. Now I'm setting up fetchmail to grab mail from another account using POP3.
Fetchmail grabs the mail from the account fine and sends it to the SMTP port where postfix accepts it fine.
The problem I have is that the mail never hits my mailbox. When I look at the logs I can see it's trying (correctly?) to send mail to dave@localhost.my.domain.com but it can't resolve localhost.my.domain.com to my linux box.
My resolv.conf points at my router (which presumably forwards requests to my ISPs DNS servers.
Do I need to set up DNS on my linux box or is there a simpler way I can do this??

Second question - How (and What) do I need to configre to allow the sending of mail from my linux box (ether via my pop3 account which provides SMTP for outgoing mail or my ISP smtp account)

Thanks for your help
Dave


Rats, I meant this to go in the Networking Forum, is there anyway I can move it??

david_ross 01-27-2004 04:40 PM

I've moved the thread - next time if you use the "Report this post to a moderator" link below the post we will get there quicker.

Try adding "localhost.my.domain.com" beside the loopback IP in your hosts file.

As for sending mail you can only use SMPT - pop3 does not do this.

ezra143 01-28-2004 03:32 AM

ok, I believe you could also use the localhost ip of 127.0.0.1
postfix is probably trying to resolve through your dns isp servers via your router.
do you have a registered DNS? Are you running a mail server for a domain?
cause then you would have to make the change as david_ross said, if not, then just changing it to 127.0.0.1 should work and forego the dns lookup.

markus1982 01-28-2004 06:31 AM

You can always make this domain available as "virtual domain" and create a alias with dave@localhost.my.domain.com to your real account or put it directly into your mailbox.

DavidHayes 01-29-2004 01:51 PM

Thanks for your help, adding the domain to main.cf was the key! I'm now having a similar problem. I've set relayhost to mail.gmx.net and I'm getting the same error message.
I tried setting relayhost to the ip address but that didn't work either. I am running postfix chrooted on Debian if that makes any difference.
Thanks again
Dave


All times are GMT -5. The time now is 07:47 AM.