lveronneau
11 years ago
HI all,

I am using the server to send email from a few dating websites.
I use it specially to avoid sending emails to non valid addresses.

when "email is ready to delivery" occur I used a sql staement to save the msg in in a table
this works fine.

when "email is failed to deliver to an remote host" occurs i use a sql statement to buildup a list of invalid emails in bademailtable.

Is there a way i can automatically prevent sending to an address
that is in the bademailtable ?

like i would like to have in the event :
"When an email is ready to delivery"

something like :

stopdelivery if recptr in (select emailaddress from bademailtable)
??

thanks
ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago

HI all,

I am using the server to send email from a few dating websites.
I use it specially to avoid sending emails to non valid addresses.

when "email is ready to delivery" occur I used a sql staement to save the msg in in a table
this works fine.

when "email is failed to deliver to an remote host" occurs i use a sql statement to buildup a list of invalid emails in bademailtable.

Is there a way i can automatically prevent sending to an address
that is in the bademailtable ?

like i would like to have in the event :
"When an email is ready to delivery"

something like :

stopdelivery if recptr in (select emailaddress from bademailtable)
??

thanks

Originally Posted by: lveronneau 



Hi, I am sorry to say there is no such feature in DBConnector.

There alternative is:

in GFilter, you can set a rule like this:

if X-RCPT-TO contains:

{$fn_readfile:c:\mybadlist.txt}

then delete the message.

you need to update your mybadlist.txt by your application ( for example, update it from your table each 1 minutes ).
the format in mybadlist.txt should be:

bad1@domain
bad2@domain
...


ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago

Another solution is:
write a Server Filter:

http://www.emailarchitect.net/emailserver/sdk/default.aspx?ct=filters.htm 

but you need to build it by C++, you can read your database in the filter and delete the message if the recipient in your table.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.