I am trying to set up a sendmail server in a development/testing environment, I want to allow relaying through this mail server to a specific list external email addresses, in order to test email notification in the applications being tested.  The test email accounts exist on multiple external email domains (our corporate domain, customer domains, gmail, yahoo, and hotmail).  While the contact information in the different application databases is suppose to be scrubbed for testing, mistakes have happened in the past that caused applications being to tested to send emails to regular customer contact email addresses, hence my desire to restrict relayed outbound email to a specific list of addresses.

My understanding is that the use of the "To:" tag in the access map, is supposed to be able to accept a full email address if the "Feature(blacklist_recipients) is used.

Currently I am able to use the "To" tag to allow relaying to specific recipient domains, but not to specific recipient addresses.

For example:
### start acccess file   RELAY     RELAY   RELAY
### end access file

The above "works" in that it allows relaying to addresses like and, and doesn't allow relaying addresses of other domains like, unfortunately it still allows relaying to addresses like and

When I try:
### start access file   RELAY    RELAY  RELAY
### end access file

It doesn't work, it doesn't allow relaying of mail to

Is there any way to get this to work?  or an alternate way to allow relaying to specific addresses, external to the mail server?


asked 12/14/2011 06:01

sailorfej's gravatar image

sailorfej ♦♦

1 Answers:
I found the answer else where, if you add:

define(`_RELAY_FULL_ADDR_', `1')

to your .mc file, it will allow you to use full email addresses with "To:" tag in your access map file.

's gravatar image

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



Asked: 12/14/2011 06:01

Seen: 269 times

Last updated: 12/15/2011 07:47