LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 01-27-2004, 08:01 AM   #1
DavidHayes
LQ Newbie
 
Registered: Jul 2001
Posts: 16
Thanked: 0
Postfix+fetchmail+DNS?


[Log in to get rid of this advertisement]
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

Accidently posted in the Wireless Forum because I'm not too bright
DavidHayes is offline     Reply With Quote
Old 01-27-2004, 08:22 AM   #2
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105
Thanked: 0
On the first question, You can add localhost.my.domain.com to the 127.0.0.1 address in your /etc/hosts file. You will also have to add the same name into the postfix main.cf file on the 'mydestination' line and then reload postfix.

For the second, you really should have DNS configured to send mail out (unless you simply want to pass all of the messages to your ISP for actual delivery) so that your IP address is resolvable (the ISP can do that). If you simply want to pass the message to another system for real delivery, simply set the 'relayhost' parameter in the main.cf file and postfix will send any non-local message to that system for delivery.
Linux_in_NH is offline     Reply With Quote
Old 01-27-2004, 08:50 AM   #3
DavidHayes
LQ Newbie
 
Registered: Jul 2001
Posts: 16
Thanked: 0

Original Poster
Excellent, I'll try that when I get home tonight. I'm not quite sure I'm ready to set up DNS yet. Once I have fetchmail working my next mission is apache and webmail (probably Squirell Mail)
Thanks
Dave
DavidHayes is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - fetchmail error varun_saa Mandriva 3 09-18-2005 10:50 PM
postfix - procmail, fetchmail varun_saa Mandriva 3 09-11-2005 01:53 AM
Spam+Postfix+Fetchmail DavidHayes Linux - Software 0 03-29-2004 10:31 AM
Postfix+fetchmail+DNS? DavidHayes Linux - Networking 4 01-29-2004 02:51 PM
postfix + cyrus + fetchmail jim_boy Linux - Software 2 02-19-2003 03:54 PM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration