[Baruwa] mail_hosts table modification question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Baruwa] mail_hosts table modification question

Mohammed Alli

Hey Andrew,

 

Can wildcards, such as smtp:[ipaddress]:port, be added to the mail_hosts table?

 

This would be a good thing because the [] suppresses MX lookup and smtp/port tells postfix to deliver the mail via smtp and on which port.

 

 


_______________________________________________
Baruwa mailing list
[hidden email]
http://lists.baruwa.org/mailman/listinfo/baruwa
Reply | Threaded
Open this post in threaded view
|

Re: [Baruwa] mail_hosts table modification question

Andrew Colin Kissa
Administrator

On 02 Sep 2010, at 5:52 PM, Mohammed Alli wrote:

> Can wildcards, such as smtp:[ipaddress]:port, be added to the mail_hosts table?

No wildcards are not allowed, the form validates the field for either an ip address or
hostname. The port is a separate column in the database.

The SQL can not be specific to an MTA it has to provide generic data, the query you
use in your MTA can them be used to format the return string correctly.

to obtain smtp:[ipaddress:port] is quite easy using sql. you just use concatination.

>  
> This would be a good thing because the [] suppresses MX lookup and smtp/port tells postfix to deliver the mail via smtp and on which port.

--
JAVA - write once, crawl anywhere.

_______________________________________________
Baruwa mailing list
[hidden email]
http://lists.baruwa.org/mailman/listinfo/baruwa
--
Baruwa - www.baruwa.org