MultipleQueueDir using "{todomain}"

Errol Neal eneal at dfi-intl.com
Mon Jun 12 13:13:45 IST 2006


Thanks again for clarifying.  

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Julian
Field
Sent: Monday, June 12, 2006 6:35 AM
To: MailScanner discussion
Subject: Re: MultipleQueueDir using "{todomain}"


On 12 Jun 2006, at 11:15, Errol Neal wrote:

> I feel embarrased :)
> But better embarrassed and corrected than the alternative!
> Thanks for the clarification.
>
> Also, for further clarification, is {todomain} an array?

Yes.

> What is
> returned? I just assumed it was a single dest domain.

It's the list of domains of each of the recipients of the message.  
Remember each message has multiple recipients in MailScanner.


> Errol
>
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of 
> Julian Field
> Sent: Monday, June 12, 2006 3:52 AM
> To: MailScanner discussion
> Subject: Re: MultipleQueueDir using "{todomain}"
>
>
> On 12 Jun 2006, at 04:29, Errol Neal wrote:
>
>> In CustomConfig.pm I have:
>>
>> Return '/var/spool/mqueue.priority' if $message->{todomain} = 
>> enhtech.com;
>
> That's bad perl.
> What you meant was this:
>
> return '/var/spool/mqueue.priority' if ${$message->{todomain}}[0] eq 
> 'enhtech.com';
>
> or something similar.
>
> {todomain} is a list, so you want the first (for example) element of 
> the list.
> '=' is the assignment operator. You want to do a string compare which 
> is 'eq'.
> The string should of course be surrounded by ' quotes.
>
>>
>> MS didn't choke on it, however, I'm finding that that's not all 
>> that's
>
>> making into this queue.
>> What have I done incorrectly? This server is a gateway so sendmail 
>> returns mail.enhtech.com for all domains This server protects.
>>
>> TIA,
>>
>> Errol
>>
>> __________________________________________
>> Errol Uriel Neal Jr.
>> Sr. Network Administrator
>> DFI International, Inc.
>> 1717 Pennsylvania Ave NW, Suite 1300
>> Washington, DC  20006
>> Tel (202)452-6955
>> Fax (202)452-6910
>> eneal at dfi-intl.com
>> www.dfi-intl.com
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>
> --
> Julian Field
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store PGP footprint:
> EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
>
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!

--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store PGP footprint:
EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list