Toon posts:

postfix multidomain setup

Pagina: 1
Acties:

Verwijderd

Topicstarter
ik heb postfix

en 2 domeinen aangemaakt met volgende beschrijving
Ocken wrote:
>
> Does anyone know of a good How-to on setting up virtual domains in postfix?
>
> what i want to do is have a table like:
>
> bob@domain1.com bobdm1
> bob@domain2.com bobdm2
>
> where bobdm1 and bobdm2 are the local user names.

So what's your problem?! Just do it!.. Exactly this way...
In main.cf:

virtual_maps = hash:/etc/postfix/virtual

In /etc/postfix/virtual:

domain1.com virtual
domain2.com virtual
bob@domain1.com bobdm1
bob@domain2.com bobdm2


Then postmap /etc/postfix/virtual, and postfix reload.
That's all... ;)

Regards.
Michael.
op mijn workstation in eudora:

domain1.com die staat in postfix ook als standaard domain kan verzenden en ontvangen

bij domain2.com kan ik versturen maar niet ontvangen
ik krijg van chello bericht terug over relayen
Delivered-To: tbsupport@domain1.com
To: support@domain1.com
From: Mail Administrator <Postmaster@chello.nl>
Reply-To: Mail Administrator <Postmaster@chello.nl>
Subject: Mail System Error - Returned Mail
Date: Tue, 5 Nov 2002 12:28:06 +0100


This Message was undeliverable due to the following reason:


Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.


Recipient: <support@domain2.com>
Reason: 5.7.1 <support@domain2.com>... Relaying denied


Please reply to Postmaster@chello.nl
if you feel this message to be in error.
Reporting-MTA: dns; xxxxx.chello.nl
Arrival-Date: Tue, 5 Nov 2002 12:27:59 +0100
Received-From-MTA: dns; xxxxx.xxxx.nl (62.62.62.62)


Final-Recipient: RFC822; <support@domain2.com>
Action: failed
Status: 5.1.1
Remote-MTA: dns; mail.domain2.com (250.250.250.250)
Diagnostic-Code: smtp; 550 5.7.1 <support@domain2.com>... Relaying denied
Received: from xxxx.xxxx.nl ([62.62.62.62])
by xxxxxx.chello.nl
(InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP
id <20021105112759.QVZW1247.xxxxxxx.chello.nl@xxxx.xxx.nl>
for <support@polyxena.nl>; Tue, 5 Nov 2002 12:27:59 +0100
Message-Id: <5.2.0.9.0.20021105122527.00ab7c68@123.123.123.123>
X-Sender: tbsupport@123.123.123.123
X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9
Date: Tue, 05 Nov 2002 12:25:29 +0100
To: support@domain2.com
From: tubis support <support@domain1.com>
Subject: test2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed


test2
ik heb dit gevonden en de volgende regel aan gepast naar maar dat werkt niet

mydestination = $myhostname localhost.$mydomain, domain2.com
What domains to receive mail for
The mydestination parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine. The default is to receive mail for the machine itself.
You can specify zero or more domain names, /file/name patterns and/or type:name lookup tables, separated by whitespace and/or commas. A /file/name is replaced by its contents; type:name requests that a table lookup is done, typically from a virtual database.

If your machine is a mail server for its entire domain, you must list $mydomain as well.


Examples:

Default setting:
mydestination = $myhostname localhost.$mydomain

Domain-wide mail server:
mydestination = $myhostname localhost.$mydomain $mydomain

Host with multiple DNS A records:
mydestination = $myhostname localhost.$mydomain www.$mydomain ftp.$mydomain
Caution: in order to avoid mail delivery loops, you must list all hostnames of the machine, including $myhostname, and localhost.$mydomain.

  • Kees
  • Registratie: Juni 1999
  • Laatst online: 12:37

Kees

Serveradmin / BOFH / DoC
probeer eens:
mydestination = $myhostname, hash:/etc/postfix/virtual

Verder lijkt het erop dat hij de mail niet eens via de locale server verzend, maar meteen alles naar chello gooit. Kijk eens in je maillogs hiervoor?

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan


Verwijderd

Topicstarter
de mail.domain2.com stond verkeerd in dns server ik kan morgen testen of het werkt
toch weleens handig om collega erbij te halen :)