Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

How do I customise the messages that Exim sends?

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


mi6 at orcon

Nov 12, 2006, 7:56 PM

Post #1 of 4 (470 views)
Permalink
How do I customise the messages that Exim sends?

Hi,
I was wondering how I can get Exim to send a 'deny message' to people using
Outlook and Outlook Express.
I have an Exim server, and want to only allow certain peope to send emails,
based on certain conditions. All of that works fine. The only problem is
that the deny message is not seen in Outlook or Outlook Express, even though
it shows up in some other email clients.
I've shown one of my 'deny conditions' below (from my Exim configuration
file), which includes the particular deny message for that deny condition.

deny condition = ${lookup pgsql{ select 1 from allowableemails \
where allowableemails.email_address = '$sender_address' \
and member.record_id=allowableemails.member_id \
and member.account_status = '2CO_PAYMENT_PENDING' }{$value}}
message = Your account has not been activated, but will be activated
as soon as your payment is verified.

Any help would be very much appreciated!
Thanks
--
View this message in context: http://www.nabble.com/How-do-I-customise-the-messages-that-Exim-sends--tf2619852.html#a7311122
Sent from the Exim Users mailing list archive at Nabble.com.


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


hs at schlittermann

Nov 13, 2006, 3:10 AM

Post #2 of 4 (423 views)
Permalink
Re: How do I customise the messages that Exim sends? [In reply to]

chuckee <mi6 [at] orcon> (Mo 13 Nov 2006 04:56:41 CET):
>
> Hi,
> I was wondering how I can get Exim to send a 'deny message' to people using
> Outlook and Outlook Express.
> I have an Exim server, and want to only allow certain peope to send emails,
> based on certain conditions. All of that works fine. The only problem is
> that the deny message is not seen in Outlook or Outlook Express, even though
> it shows up in some other email clients.
> I've shown one of my 'deny conditions' below (from my Exim configuration
> file), which includes the particular deny message for that deny condition.
>
> deny condition = ${lookup pgsql{ select 1 from allowableemails \
> where allowableemails.email_address = '$sender_address' \
> and member.record_id=allowableemails.member_id \
> and member.account_status = '2CO_PAYMENT_PENDING' }{$value}}
> message = Your account has not been activated, but will be activated
> as soon as your payment is verified.

As far as I know Outlook has problems if you use multiline responses.
(But your message doesn't look like a multiline response though.)

AFAIK you've to click on 'Details' if you want to see the real message
from the mailserver.

The general question is, if you should reject the message at SMTP level
or if generating a bounce mail is much more user friendly, because this
should work with /any/ mail client.


Best regards from Dresden
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann HS12-RIPE -----------------------------------------
gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
Attachments: signature.asc (0.18 KB)


exim4 at nospam-domain

Nov 13, 2006, 4:42 AM

Post #3 of 4 (430 views)
Permalink
Re: How do I customise the messages that Exim sends? [In reply to]

Hello Heiko,

> The general question is, if you should reject the message at SMTP level
> or if generating a bounce mail is much more user friendly, because this
> should work with /any/ mail client.

I think, you should reject messages to MUAs and not bounce it. A MUA which
cannot respond in a user friendly manner to an MTA reject, should be
dumped.

I've many customers which ignore any bounces ("what's all that spam") and
rely on the mail client: If a mail is in the "Sent"-Folder, it is sent!
And the recipient got it! *doh*

But when e.g. Thunderbird is showing a messagebox with an **useful** error
from the MTA, the customer knows immediately that there was something
wrong with his mail, and that it was not sent.

Gruß,
cp

--
Die Homepage meines Vertrauens: www.cpur.de


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


mi6 at orcon

Nov 15, 2006, 7:22 PM

Post #4 of 4 (413 views)
Permalink
Re: How do I customise the messages that Exim sends? [In reply to]

Hey, thanks for that.
I've played around with it and I think that the deny message can be a
maximum of only 80 characters.
I know that Outlook Express can display many more characters than this, so
why am I only limited to showing 80 characters?
Perhaps if I work out how to make the Exim server respond as 'Authentication
Required' then the deny message allowed might be bigger? Does anyone know
how to do that?
Cheers!




Heiko Schlittermann wrote:
>
> chuckee <mi6 [at] orcon> (Mo 13 Nov 2006 04:56:41 CET):
>>
>> Hi,
>> I was wondering how I can get Exim to send a 'deny message' to people
>> using
>> Outlook and Outlook Express.
>> I have an Exim server, and want to only allow certain peope to send
>> emails,
>> based on certain conditions. All of that works fine. The only problem is
>> that the deny message is not seen in Outlook or Outlook Express, even
>> though
>> it shows up in some other email clients.
>> I've shown one of my 'deny conditions' below (from my Exim configuration
>> file), which includes the particular deny message for that deny
>> condition.
>>
>> deny condition = ${lookup pgsql{ select 1 from allowableemails \
>> where allowableemails.email_address = '$sender_address' \
>> and member.record_id=allowableemails.member_id \
>> and member.account_status = '2CO_PAYMENT_PENDING' }{$value}}
>> message = Your account has not been activated, but will be
>> activated
>> as soon as your payment is verified.
>
> As far as I know Outlook has problems if you use multiline responses.
> (But your message doesn't look like a multiline response though.)
>
> AFAIK you've to click on 'Details' if you want to see the real message
> from the mailserver.
>
> The general question is, if you should reject the message at SMTP level
> or if generating a bounce mail is much more user friendly, because this
> should work with /any/ mail client.
>
>
> Best regards from Dresden
> Viele Grüße aus Dresden
> Heiko Schlittermann
> --
> SCHLITTERMANN.de ---------------------------- internet & unix support -
> Heiko Schlittermann HS12-RIPE -----------------------------------------
> gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
> gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>

--
View this message in context: http://www.nabble.com/How-do-I-customise-the-messages-that-Exim-sends--tf2619852.html#a7371027
Sent from the Exim Users mailing list archive at Nabble.com.


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.