I assume you are setting this up on domain <artistic.com.ph>.
If you are, and since the server at that MX is Exchange server, IIRC you
were going to configure exchange to relay all outbound mail to Xmail.
If this is true, then Xmail user permissions are not going to help you.
The only solution I believe will work is to use filters.out.tab as follows
(replace [TAB] with a real TAB char & drop left spaces).
mailroot\filters.out.tab
------------------------
"[EMAIL PROTECTED]"[TAB]"*"[TAB]"0.0.0.0/0"[TAB]"0.0.0.0/0"[
TAB]"blockedrelay.tab"
"[EMAIL PROTECTED]"[TAB]"*"[TAB]"0.0.0.0/0"[TAB]"0.0.0.0/0"[
TAB]"blockedrelay.tab"
=== Repeat the line for each user to block ===
mailroot\filters\blockedrelay.tab
---------------------------------
"cmd /c D:\XmailFilters\blockedrelay.cmd"[TAB]"@@FROM"
=== The @@FROM is only needed if version 2 (below) is used ===
D:\XmailFilters\blockedrelay.cmd (version 1)
--------------------------------
exit 6
=== Do nothing except return 6 to Xmail ===
=== see the readme and search
for "If it returns '6' the message" for details. ===
D:\XmailFilters\blockedrelay.cmd (version 2)
--------------------------------
replace "[EMAIL PROTECTED]" "%1" /src bouncemessage.txt
/dst outfile.txt
move outfile.txt \mailroot\spool\local
exit 4
=== An alternate is to customise the bounce message, but
you will need to write some thing to generate a local
mail file for Xmail.
This is easy, but can't be achieved using "echo" in
a cmd file because you need to output "<" & ">" chars.
You could find a search and replace tool that could
take a template file and add the senders address
(%1 in the example). But there is more to it than that
because you will need to watchout for multiple instances
running at the same time, (they would create the same
file name), the outfile.txt will need to be a unique
file name *every* time the program runs.
When generating your own bound msg, return 4 to Xmail ===
=== see the readme and search for "If it returns '6' the message" for
details. ===
Sample bounce message file for dropping in mailroot\spool\local
====================================
01 mail from:<[EMAIL PROTECTED]>
02 rcpt to:<[EMAIL PROTECTED]>
03
04 From: "Postmaster" <[EMAIL PROTECTED]>
05 To: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>
06 Subject: Blocked Outbound eMail
07 Date: Sun, 19 Oct 2003 03:27:00 +1000
08
09 You are not permitted to send external eMails.
10
11 Thanks,
12 Postmaster.
====================================
In the sample you will need to drop the line numbers, they are there to
ensure email line wrapping does not confuse you.
Note: line 03 must be blank. Also line 07 should have the current date/time.
For details on the generating emails for the Local Mailer see the readme
"XMAIL LOCAL MAILER"
I expect that if you knew a programming language you would be better off
generating the 'outfile.txt' and moving the file to spool/local, rather than
using "cmd.exe /c"
Rob :-)
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Erwin Llave
> Sent: Tuesday, October 21, 2003 6:35 PM
> To: '[EMAIL PROTECTED]'
> Subject: [xmail] SMTPAUTH.tab does not work Re: block certain users in
> sending out
>
>
> Hello,
>
> I setup my smtpauth.tab and set user USER1 for M permission only.
> However he
> can still send emails out of our domain. I commented the
> DefaultSMTPperms in
> server.tab and set the EnableAuthSMTP - POP3, tried 0 and 1 but USER1 can
> still send out. Am I doing it right?
>
>
> Thanks,
>
> Erwin
>
> -----Original Message-----
> From: Davide Libenzi [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 17, 2003 2:24 AM
> To: Xmail Technical (E-mail)
> Subject: [xmail] Re: block certain users in sending out
>
>
>
> On Thu, 16 Oct 2003, Erwin Llave wrote:
>
> > Hello,
> >
> > Is there a way to block certain users in sending out emails
> outside Xmail
> or
> > to the internet? If the blocked user or email address sends out
> an email,
> > there should be an autoreply stating that he is not allowed to send out
> > emails outside the domain. Got any solution for this situation? I am a
> > newbie in Xmail and I do not know how to handle it in filters.out.tab.
>
> You can leave smtprelay.tab empty and use SMTP authentication, playing
> with SmtpPerms inside the account's user.tab (see doc).
>
>
>
> - Davide
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]