Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to setup a simple (Linux

Status
Not open for further replies.

bluegroper

Technical User
Dec 12, 2002
407
AU
I'm trying to setup a simple (Linux RH7.3) mailserver using postfix (for local mail and outgoing mail), and fetchmail to collect mail from my isp. I have multiple pop3 mailboxes with my isp, and each one "belongs" to a unique local user, if that makes sense.
The outgoing mail from users through postfix and on to the isp's mailserver seems to work just fine. Also the delivery of local mail is good too.
Only hard part is the collecting of mail from the isp's pop3 mailboxes. I've setup each mail user as a linux user, so that they can each have their own linux mailbox and .fetchmailrc file. They then use either the fetchmail daemon, or cron to schedule mail collection. In (my) theory, each users' .fetchmailrc should just drop their mail into their respective local mailbox. They get at it across the LAN using Outlook, Eudora, Netcape, whatever.
Postfix has been configured with "mydomain = domain.name.com" to ensure proper delivery of locally addressed mail.
The only "gotcha" that I've struck with this is the way fetchmail collects mail and then hands it on to Postfix. Fetchmail collects the mail and addresses it to "username@localhost". Postfix translates this to be "username@localhost.domain.name.com". Then Postfix cannot deliver the mail so everything ends up being dumped on root, with a very rude "500 Host Unknown" error message.
I'm hoping some guru can point me in the right direction for this last piece of the puzzle, because everything else looks very nice.
TIA's
 
Sorry, I missed the subject field on that last post. Seems like there's no way to edit it either.
 
Fixed !

Just needed a little prodding in main.cf
mydestination = $mydomain, localhost.$mydomain

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top