LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-06-2008, 02:14 PM   #1
nobody
LQ Newbie
 
Registered: May 2002
Distribution: SUSE 10.1, slackware 10.1, LFS 6.2
Posts: 10

Rep: Reputation: 0
Help with understandig of postfix and smarthost


I want to install an imap-mailserver for a small internal net (up to 25 users) on an debian etch system and want to use it also to receice mails from various external e-mailaddresses.
I found this http://workaround.org/articles/ispmail-etch/index.html.de instruction which sounds realy good.

I also understand that i can use fetchmail to get mails from various external accounts on my mailserver by telling fetchmail that
Code:
user someuser@externaldomain there with password extpassword ist user someuser@mydomain.intern
and that i can use a smarthost by using /etc/postfix/sasl_password and writing something like

mail.externaldomain.net usernam@externaldomain.netassword

into this file. But as far as I understand this means, that all mail to external recipients is sent with the account usernam@externaldomain.net in the "From:" field.

What i want to know is. Is there a way to use postfix like a "reverse"fetchmail by telling it somehow, that it should use different smathosts with different accounts and different passwords for different localaccounts?

I mean is there a way to define something like:
Code:
...
user someuser@mydomain.intern is someotheruser@someexterndomain with passwordforexterndomain
user someotheruser@mydomain.intern is yetanotheruser@someotherexterndomain with anotherexternpassword
...
so that all mails to external recipients are stored in the sentdirectory of my intern mailserver and sent via different smarthosts with different "from:" fields to the external recipients and all answers where fetched with fetchmail from the different external email-accounts and stored in my intern mailserver and there available to the specified internal users and all my internal mails are only stored and distibuted internal?
 
Old 08-06-2008, 05:03 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Why are you using a smarthost entry to send outbound e-mails any way? Have you tried just letting Postfix handle the delivery by doing DNS lookups?
 
Old 08-07-2008, 12:34 PM   #3
nobody
LQ Newbie
 
Registered: May 2002
Distribution: SUSE 10.1, slackware 10.1, LFS 6.2
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry i forgot to tell. I'm using a DSL-connection with a dynamic IP-Address and since most providers dont accept smtp-connections from dynamic IP's and since I also dont want my domain to be an external known domain and only want to use it internal, as far as I understood, this could only be possible by use of a smarthost.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
smarthost - do I need it? hua Linux - Networking 7 02-12-2008 01:09 PM
Exim smarthost ? prixone Linux - Server 2 01-01-2008 04:05 AM
sendmail smarthost klaxyn Linux - Networking 3 03-12-2007 10:00 PM
SUSE 9.2 postfix smarthost hk- SUSE / openSUSE 1 04-18-2005 04:20 PM
exim4 smarthost and SBC Yahoo RonV Debian 1 04-18-2005 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration