Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

virtual domains

187 views
Skip to first unread message

Sven Müller

unread,
Nov 27, 2001, 4:26:43 PM11/27/01
to
Hello!

Please help me! I try to set up an virtual mailing system...I read all
the man pages and documentation, an I think it should work, but it
doesn't! :-(

I have a server and on this server I host many web sites and I also want
to use it for email sending.

So in main.cf I set the following:

mydestination = $myhostname,locahost.$mydomain
virtual_maps = hash:/etc/postfix/virtual

in /etc/postfix/virtual

/etc/postfix/virtual:
domain1.de info about domain1
na...@domain1.de pop.1
na...@domain1.de pop.2
domain2.de info aboute domain2
na...@domain2.de pop.3
na...@domain2.de pop.4

....

After editing this files I uses the commands postmap
/etc/postfix/virtual
and
postfix reload

If I send a Mail so any of the virtual domains...it allway get bounced!

to=<na...@domain1.de>, relay=none, delay=0, status=bounced
(mail for domain1.de loops back to myself)

When I set: (thats not the postfix-style, correct?)
mydestination = $myhostname,locahost.$mydomain, domain1.de, domain2.de
in main.cf

the mails will delivered, but I only can use Email names with users I
have installed on the system, but thats not what I want, because most of
the domains have an Email alias like "info@domain...."

Please help me! What is wrong? I absolutly have no more idea and I tried
so many hours....

Grettings, Sven

--

-
To unsubscribe, send mail to majo...@postfix.org with content
(not subject): unsubscribe postfix-users

Michael Tokarev

unread,
Nov 27, 2001, 4:47:17 PM11/27/01
to

Well, it's time to have a cup of (your preferred drink here). And relax.

What does `postconf virtual_maps' says? I suspect you either have
another definition of virtual_maps in your main.cf or you edited
wrong .cf file. BTW, `postconf -n' is your friend. And `postconf -e',
with some more arguments, too.

Regards,
Michael.

sven

unread,
Nov 27, 2001, 5:12:09 PM11/27/01
to
On Wed, Nov 28, 2001 at 12:45:51AM +0300, Michael Tokarev wrote:
>
> Well, it's time to have a cup of (your preferred drink here). And relax.
>
> What does `postconf virtual_maps' says? I suspect you either have
> another definition of virtual_maps in your main.cf or you edited
> wrong .cf file. BTW, `postconf -n' is your friend. And `postconf -e',
> with some more arguments, too.
>
> Regards,
> Michael.
> -
> To unsubscribe, send mail to majo...@postfix.org with content
> (not subject): unsubscribe postfix-users


Thank you, for your help!

postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
delay_warning_time = 4
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -o -a $DOMAIN -d $LOGNAME
message_size_limit = 5000000
mydestination = mydomain.de
mydomain = mydomain.de
myhostname = mydoam.de
mynetworks = XXX.XXX.XXX.XXX, XXX.XXX.XXX.XXX
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Linux)
virtual_maps = hash:/etc/postfix/virtual

and

postconf virtual_maps

virtual_maps = hash:/etc/postfix/virtuali

Gives it enough informations for solving the problem?

Greetings, Sven

Sven Müller

unread,
Nov 27, 2001, 6:34:46 PM11/27/01
to
On Wed, Nov 28, 2001 at 02:01:24AM +0300, Michael Tokarev wrote:
> Sven Müller wrote:
> >
> []

> > postconf virtual_maps
> > virtual_maps = hash:/etc/postfix/virtual
> > > Ok.
> > >
> > > So what does
> > > postmap -q domain1.de hash:/etc/postfix/virtual
> > > says?
> > >
> []
> > Nothing!
> > It gives no output!
> >
> > It looks like, that postfix doesn't use the virtual table, right!?
>
> No, it looks like your virtual table have no required entries.
> I don't know how you postmap'ped it as you said in your first
> post. If you postmap'ped the file you shown then the above
> command should return "info about domain1" string. Please double-check
> which file you postmap'ped (modification dates of the virtual
> and virtual.db and others counts too) and how it looks like (lines
> starting with a whitespace for example). And -- what is the output
> from `postconf default_database_type' ? Maybe postfix uses
> not hash: but something else by default?

>
> Regards,
> Michael.
> -
> To unsubscribe, send mail to majo...@postfix.org with content
> (not subject): unsubscribe postfix-users

Yes, maybe there is a problem with typing the file "virtual"

postconf default_database_type
default_database_type = hash

When I edit the virtual file sometimes I get the error messages

postmap: warning: /etc/postfix/virtual.latest, line 13: expected format:
key whitespace value

Maybe there is missunderstanding aboute the word whitespace...I alway
press "tab".

And I insert blanks?

Is that wrong?

Sven

--

----------------------------------------
SMU-NET www.smu-net.de
Dienstleistungen im Bereich EDV/Internet
Sven Müller sven.m...@smu-net.de
Tel.: 0241/158513
----------------------------------------

Sven Müller

unread,
Nov 27, 2001, 7:07:27 PM11/27/01
to
On Wed, Nov 28, 2001 at 02:40:54AM +0300, Michael Tokarev wrote:
> Sven M?ller wrote:
> >
> []

> > Yes, maybe there is a problem with typing the file "virtual"
> >
> > postconf default_database_type
> > default_database_type = hash
> >
> > When I edit the virtual file sometimes I get the error messages
> >
> > postmap: warning: /etc/postfix/virtual.latest, line 13: expected format:
> > key whitespace value
>
> You can't get this error message when you're editing the file.

>
> > Maybe there is missunderstanding aboute the word whitespace...I alway
> > press "tab".
> >
> > And I insert blanks?
> >
> > Is that wrong?
>
> Postfix treats spaces and tabs the same way.
>
> As I said earlier. I have no telepatic abilities. Please look
> into line 13 of your virtual.latest at this time and enshure it looks
> correctly. What's not clear? Please don't waste everyone's time
> for this. Either correct that line yourself or post the whole
> UNMODIFIED file together with relevant log lines here.
>
> And also -- if you will start from scratch after any error when you
> will never able to configure something.

>
> Regards,
> Michael.
> -
> To unsubscribe, send mail to majo...@postfix.org with content
> (not subject): unsubscribe postfix-users

I'm sorry for wasting your time!

I think the problem is the the virtual file. I write it new and got the
error I told you, I don't know why...so I took the old file and postmap
runs correctly and creates a new virtual.db file.
If I use postmap -q domain.de hash:/etc/postfix/virtual
I get no result...when I understand you correct normaly I would get the
text which stands behind the line domain1.de in virtual
So, I think there must be any reason why postmap interpret all lines
like the lines which starts with "#".

I will try to find the problem by myself...if I get it, I tell you!

Thanks for all your efforts!!!

Grettings, Sven

--

0 new messages