[Exim] How to restirct access to Alias ?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Dilip M
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: [Exim] How to restirct access to Alias ?
Hi,

I have created one alais called in mysql database as "all@???"
How could i restrict that only local users can send mail to that
alias,than all internet users?

Apart from local users , the user should get a bouce saying that,you do
not belong to company and not authorised to send mails to this ID.


router and tranport are as follows:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
begin routers
.
.
.

virtual_domains:
   driver = redirect
   allow_fail
   data = ${lookup mysql{select smtp from users,domains \
                 where localpart = '${quote_mysql:$local_part}' \
                 and domain = '${quote_mysql:$domain}' \
                 and domains.enabled = '1' \
                 and users.enabled = '1' \
                 and users.domain_id = domains.domain_id}}
.
.
.



begin tranport
.
.

virtual_delivery:
   driver = appendfile
   envelope_to_add
   return_path_add
   mode = 0600
   maildir_format = true
   create_directory = true
   directory = ${lookup mysql{select smtp from users,domains \
                 where localpart = '${quote_mysql:$local_part}' \
                 and domain = '${quote_mysql:$domain}' \
                 and users.domain_id = domains.domain_id}}
   user = ${lookup mysql{select users.uid  from users,domains \
                 where localpart = '${quote_mysql:$local_part}' \
                 and domain = '${quote_mysql:$domain}' \
                 and users.domain_id = domains.domain_id}}
   group = ${lookup mysql{select users.gid from users,domains \
                 where localpart = '${quote_mysql:$local_part}' \
                 and domain = '${quote_mysql:$domain}' \
                 and users.domain_id = domains.domain_id}}
   quota = ${lookup mysql{select users.quota from users,domains \
                 where localpart = '${quote_mysql:$local_part}' \
                 and domain = '${quote_mysql:$domain}' \
                 and users.domain_id = domains.domain_id}{${value}M}}
   quota_is_inclusive = false
   #quota_size_regex = ,S=(\d+):
   quota_warn_threshold = 75%
   maildir_use_size_file = false
   quota_warn_message = "To: $local_part@$domain\n\
                         Subject: Mailbox quota warning\n\n\
                         This message was automatically generated by the
mail delivery software.\n\n\
                         You are now using over 75% of your allocated mail
storage quota.\n\n\
                         If your mailbox fills completely, further incoming
messages will be automatically\n\
                         returned to their senders.\n\n\
                         Please take note of this and remove unwanted mail
 from your mailbox.\n"
.
.
.




Thanks
-Dilip



--
The message in this mail are under GNU General Public License ;)
-----------