OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: multiple domains on single host
From: Ralf Hildebrandt (news-list.postfix.usersinnominate.de)
Date: Thu Jul 13 2000 - 03:00:25 CDT


On 12 Jul 2000 23:05:00 +0200, agohollo.idg.hu <agohollo.idg.hu> wrote:

>I know. Here's exactly what my problem is. I need to host two domains.

Use virtual

>Both of them has only one user at this time. A program generates output
>and waits input because the communication is driven by emails. So, the
>first domain is szol.hu, the other is serve.hu . Both MXs points to one
>machine/IP. If a mail arrives to a non-existent user the mail has to
>be relayed to a user , called sms (on both domains). I have to use an

serve.hu sms
userserve.hu local_user

szol.hu sms
userszol.hu local_user

>the script for both domain ? As I see there is maybe a possibility to
>execute commands for virtual domain users but what if the user doesn't
>exist (never will) and I want to use the luser_relay and alias_name :

Not sure if luser_relay works with virtual domains; but try this:

in aliases:
sms :|/some/script/for/handling/of/local/users

>"command" parameter. And more important. If the program responds it has to
>respond in the name of the luser. So if it was szol at szol.hu it has to
>respond as szolszol.hu and the same applies at serve.hu (respond:
>serveserve.hu) So it has to keep who got the message.

Hm, you can pass data to the script via environment variables, check the
"local" manpage.

-- 
Ralf.Hildebrandtinnominate.de
Dipl.-Informatiker                                        innominate AG
System Engineer                                       networking people
tel: +49.30.308806-62 fax: -77  web: http://innominate.de  pgp: /pgp/rh