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
1 Hi, everyone!
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?
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 but
14 it appears to be forbidden. If I have the virtual domain "" I
15 can't set "". As workaround I put an additional
16 name in the DNS and set "". 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
26 This way is clumsy! Please, advise me how to do it right.
28 --
29 Best regards,
30 Daniel
33 --
34 gentoo-user@g.o mailing list