Results 1 to 5 of 5

Thread: Exim tweaking

  1. #1

    Exim tweaking

    Hello.

    We need to block some email accounts (not domain names but some particular email accounts only) from receiving external emails. So only local emails should be delievered.

    Do you guys know a quick solution for this?

    Our server: RedHat 9 with DirectAdmin with Exim

    Thank you.
    MyIdealHost.com Best quality web hosting

  2. #2
    Join Date
    Apr 2003
    Location
    Melbourne, AU
    Posts
    539
    you can try the following (untested) acl:

    Code:
    deny recipients     = @@lsearch;/etc/exim/internal-emails-only
         sender_domains = !+local_domains
         message        = $local_part@$domain is for internal use only.
    i'll test it later in the evening when i come home

  3. #3
    Thank you for the answer, however I cannot get it working
    Did you have a chance to test it?
    MyIdealHost.com Best quality web hosting

  4. #4
    Join Date
    Jun 2003
    Location
    Bay Area
    Posts
    218

    exim manual

    the exim manual is a great resource. I'm pretty sure you could look up the bits of the config snippet he gave you and figure out how to make it go.
    -- My software isn't buggy; it develops random features --

  5. #5
    Just in case if anybody wants to know the solution.
    I have added such filter into the /etc/system_filter.exim

    if $header_to: contains "[email protected]"
    then
    if $header_from: contains "domain.com"
    then
    seen finish
    endif
    fail text "This message is not permitted to relay"
    seen finish
    endif

    so it allows to pass emails from domain.com only to [email protected]
    MyIdealHost.com Best quality web hosting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •