Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] postfix: how to disable local delivery
Date: Wed, 27 Sep 2006 15:49:53
Message-Id: 451A9B04.1060809@ilievnet.com
1 Hi, everyone!
2
3 My question is not Gentoo related but, well, I'm used to this list so I
4 ask here. Please, forgive me the off-topic.
5 I decided to try postfix. My question is how do I disable the local
6 delivery and use only virtual domains?
7
8 It seemed to me that the right thing to do is to put
9 "myorigin=localhost", "mydestination=localhost" and additionally define
10 virtual domain(s). This worked w/o problem until I tried to subscribe to
11 gentoo-amd64 list. Then I got bounce from gentoo mail reading that it
12 required a real domain name, not "localhost'.
13 My first thought was to make mydestination=the.virtual.domain.name but
14 it appears to be forbidden. If I have the virtual domain "example.com" I
15 can't set "mydestination=example.com". As workaround I put an additional
16 name in the DNS and set "mydestination=new-name.example.com". Then the
17 bounce from gentoo mail was that my postfix says "550 no such local
18 user" - Yeah, right, absolutely correct! The user is xxx@×××××××.com,
19 not xxx@××××××××××××××××.com. The only way I found to make things work
20 was to create a local user w/ nologin and nohome:
21 *useradd -d /dev/null -s /bin/false xxx*
22 and make an alias for him:
23 *echo xxx: xxx@×××××××.com >> /etc/mail/aliases* && newaliases &&
24 postfix reload
25
26 This way is clumsy! Please, advise me how to do it right.
27
28 --
29 Best regards,
30 Daniel
31
32
33 --
34 gentoo-user@g.o mailing list