separate queue per domain
William Burns
William.Burns at AEROFLEX.COM
Wed May 5 16:05:24 IST 2004
Julian:
Sorry if I'm missing something here but...
I've been trying to figure out how to have MailScanner read from
multiple inbound queue directories, and then output to multiple outbound
queues, where the name of the outbound queue directory would be
determined by the name of the inbound queue directory.
The inbound part is already documented in MailScanner.conf:
> Incoming Queue Dir = /var/spool/mqueue.in/*
So far, Kevin has had the most helpful advice:
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0404&L=mailscanner&P=R94234&I=-1
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0404&L=mailscanner&P=R94809&I=-1
I *think* that all I need is to find a variable containing the name of
the incoming queue dir that each piece of mail was read from.
Then (assuming that variable can be accessed from a custom function) I
should be able to write a function to set the "Outgoing Queue Dir" based
on that.
What's the name of this variable?
-Bill
Julian Field wrote:
> At 04:46 05/05/2004, you wrote:
>
>> Hi All,
>>
>> I am trying to seperate the outgoing queues based on domain name (and
>> with a default) - how do I go about creating a seperate file for this? -
>>
>> ie instead of -
>> Outgoing Queue Dir = /var/spool/mqueue.exim/input
>>
>> I wanted to have -
>> domain1 = /var/spool/mqueue.exim.domain1.input
>> domain2 = /var/spool/mqueue.exim.domain2.input
>> default = /var/spool/mqueue.exim.default
>
>
> It's our old favourite "use a ruleset" answer again :-)
>
> Set
> Outgoing Queue Dir = /etc/MailScanner/rules/outgoing.queue.rules
>
> And then in that file put
> To: domain1.com /var/spool/mqueue.exim.domain1.input
> To: domain2.com /var/spool/mqueue.exim.domain2.input
> FromOrTo: default /var/spool/mqueue.exim.default
>
> Please read the MAQ, the location of which is at the bottom of this
> posting.
> --
> Julian Field
> www.MailScanner.info
> MailScanner thanks transtec Computers for their support
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> -------------------------- MailScanner list ----------------------
> To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
> Before posting, please see the Most Asked Questions at
> http://www.mailscanner.biz/maq/ and the archives at
> http://www.jiscmail.ac.uk/lists/mailscanner.html
>
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list