Postfix, virtual domains and alias


#1

Hello everyone,

I just installed RT, great work!
Nearly everything works fine; the web interface, Database, etc.

One problem still remains and we could not find anything about that
in the FAQ or archives.

We are using postfix and a setup of virtual domains.
Our maildomain is set up as follows:
Everything to @domain goes to the default user, and after this are
special user with their own POP3 account.

The entry in /etc/alias has been made but still all mail to support
(our rt alias) goes to the default user and does not arrive at RT
(no entry in the DB, no entry shown in the queue on web interface).
As I said: via webinterface everything works fine; so I am quite
sure the problem arises at our mail setup.

Any help appreciated!

Thanks in advance,
Christian


#2

I have never used, or looked at postfix in my life, so forgive me if this is a stupid suggestion.
In sendmail, it searches the virtual user table from top to bottom, and takes the first match found.
Try placing the @domain entry, after the special users, it may not be looking any further than the default entry.

-Feargal.

_/_/_/ _/_/_/  _/_/_/  Feargal Reilly,

_/ _/ / / Systems Administrator,
/ / //// The Communications Interactive Agency.
//
/ //
/ _/ _/ Phone: +353-86-8732249.

 Hello everyone,
 
 I just installed RT, great work!
 Nearly everything works fine; the web interface, Database, etc.
 
 One problem still remains and we could not find anything about that
 in the FAQ or archives.
 
 We are using postfix and a setup of virtual domains.
 Our maildomain is set up as follows:
 Everything to @domain goes to the default user, and after this are
 special user with their own POP3 account.
 
 The entry in /etc/alias has been made but still all mail to support
 (our rt alias) goes to the default user and does not arrive at RT
 (no entry in the DB, no entry shown in the queue on web interface).
 As I said: via webinterface everything works fine; so I am quite
 sure the problem arises at our mail setup.
 
 Any help appreciated!
 
 Thanks in advance,
 Christian
 
 rt-users mailing list
 rt-users@lists.fsck.com
 http://lists.fsck.com/mailman/listinfo/rt-users

#3

We are using postfix and a setup of virtual domains.
Our maildomain is set up as follows:
Everything to @domain goes to the default user, and after this are
special user with their own POP3 account.

And the email-address for the request-tracker is localpart@domain? Is
this setup via virtual domains or what’s the exact postfix configuration
(postconf -n output)?

The entry in /etc/alias has been made but still all mail to support
(our rt alias) goes to the default user and does not arrive at RT
(no entry in the DB, no entry shown in the queue on web interface).

Until you tell us more about the postfix configuration, I would assume
that you that the entry for the rt doesn’t belong in /etc/alias, but
maybe some other files? Or did you just forget to run newaliases
/etc/aliases?

Christian
Christian Kurz http://www.planNET.de
planNET Systems GmbH mailto:info@planNET.de
Schoenfeldstr. 8 Telefon: +49 721 66 36 0
D-76131 Karlsruhe Telefax: +49 721 66 36 199


#4

This is to do with how you’ve configured either your virtual domain or alias
files. Are you sure postfix is using /etc/aliases and not
/usr/local/etc/… as I know when i used to run postfix on linux machine
things where in odd places. Also in your virtual table does it look
something like this ?

@vhost_dom @real_dom

Or have you simply named users

@vhost_dom user@real_dom

If it’s the latter then mail wont even look at aliases and everything will
just drop to the user. At least i think thats the case.

HTH,

Si.
Simon Griffiths
Systems Administrator - Clay Cross Building Society
Tel:+44(0)1246 862120 - Fax: +44(0)1246 250397


#5

Simon Griffiths schrieb:

This is to do with how you’ve configured either your virtual domain or alias
files. Are you sure postfix is using /etc/aliases and not

Thanks for any answers!

Many hours of browsing the postfix mailing lists did give me the
hint:

The virtual file in postfix won�t let you pipe commands.
In /etc/alias now I have the entry
support: |"/opt/rt/bin/rt-mailgate …"

and the virtual does look like:
support support (Mails to support shall be delievered to local
account support, which does not exist. Postfix will now look in
/etc/alias and pipe the comand).

Christian