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
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.
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
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
----------------------------------------
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
--