Hello,
Am Samstag, 29. Oktober 2011 schrieb Robert Schetterer:
> Am 26.10.2011 13:42, schrieb Robert Schetterer:
> > i have a feature request
> > i need to have transport choosing by mailbox/emailaddress ( just
> > like in the domain table )
> >
> > Background there are different type of users/emailaddresses
> > there are virtual ones ( mail going in server mailbox via dovecot
> > lmtp), others
> > are on different places on exchange servers ( mails to them should
> > smtp transported to the exchange ip )
> > this works without problems with i.e. a postfix transport hash
> > table, mysql should work too, but we need it ,for supporters in
> > the postfixadmin gui
> as nobody answered
Sorry, I had no time in the last days :-(
> i changed the alias goto sql query
> to use it for seperate user/mailaddress smtp transports
> perhaps other likes it too
>
> mysql_virtual_alias_maps.cf
> ...
> query = SELECT goto FROM alias WHERE goto NOT REGEXP
> 'somenot.exist.servernamein.dns' AND address='%s' AND active = 1;
> so you may use now
> ip....@so...rvernamein.dns
> in the alias field of a mailbox
>
> this produces a transport like
> em...@ad...ss smtp:[ip.ad.dr.ess]
> [...]
That sounds quite hackish ;-) and isn't what I would really recommend.
If you don't use the "desctiption" field, you could enter the transport
information there - that's currently the easiest way I can imagine.
Adding a field to the database and the code isn't too difficult, but
2.3.x is in bugfix-only mode and otherwise more or less a dead horse.
In other words: Investing time in adding a field to 2.3.x only makes
sense if you really need it _now_.
I'm currently working on rewriting the code into PHP classes.
You can check the current state in SVN trunk - the handling of domains
is mostly done (see *-domain.php and model/DomainHandler.php) and will
make adding additional fields very easy in the future (see initStruct()
in model/DomainHandler.php, I'll also add a hook)
However, it will take some time until I get everything migrated.
> be warned, this workaround may conflict with other stuff at your
> postfix(admin)setup
> test it hardly before use in production
;-)
> > If Donation is needed/wanted please write what will it take to
> > hack this
The best thing you could donate would be some free time ;-) but I know
this is impossible.
I won't object if you really want to donate something ;-) but it's not a
requirement.
Gruß
Christian Boltz
--
OMG I'm not perfect! Please don't tell anyone!
[Henne Vogelsang in opensuse-wiki]
|