LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sendmail /etc/mail/access issue (access.db) (https://www.linuxquestions.org/questions/linux-general-1/sendmail-etc-mail-access-issue-access-db-184644/)

CactusS4 05-22-2004 07:59 PM

Sendmail /etc/mail/access issue (access.db)
 
Okay, I've been looking for a good place to post this question and I'm hoping it's here.

I have 2 boxes that I believe are configured basically identical (same distribution, same RPM's, same Version of Sendmail, files (sendmail.mc/submit.mc/access/blah blah blah all look the same.

Box (A) "will" accept mail for admin@domain1.com from anyone and it pushes it to the linux server just fine (mail received sent, like clock work). See Access and Mailertable below.


Box (B) "will not" accept mail for admin@domain1.com from anyone and provides a relaying denied message, so nothing works here. See Access and Mailertable below

I just don't want folks sending these domains lots of crap, when the only real email box is an admin@ mailbox. So I don't want any mail but destined to admin@domain*. Without doing this I get all sorts of spam to various email addresses that are not valid, then they sit in my queue and I rather just now allow them in to begin with.


Box A:

Access File:

# by default we allow relaying from localhost...
localhost RELAY
127.0.0.1 RELAY
domain.com RELAY (Main domain name)

# Admin Mailboxes
To:admin@domain1.com RELAY
To:admin@domain2.com RELAY
To:admin@domain3.com RELAY


Mailertable:
domain.com esmtp:exchange server
domain1.com esmtp:linux server
domain2.com esmtp:linux server
domain3.com esmtp:linux server

Box B:

Access File:

# by default we allow relaying from localhost...
localhost RELAY
127.0.0.1 RELAY
domain.com RELAY (exchange Server for internal network)

# Admin Mailboxes
To:admin@domain1.com RELAY
To:admin@domain2.com RELAY
To:admin@domain3.com RELAY


Mailertable:
domain.com esmtp:exchange server
domain1.com esmtp:linux server
domain2.com esmtp:linux server
domain3.com esmtp:linux server


However, if I place the following line in my Access file on Box (B):

domain1.com RELAY

I can send mail to admin@domain1.com without any issues, however!! the To:admin@domain.com earlier in the access-list should be all I need. As Box(A) is configured without this extra rule and it works just fine..


Error message on Box (B)

May 22 18:39:53 gateway sendmail[30716]: i4N1dBda030716: ruleset=check_rcpt, arg1=admin@domain1.com, relay=remote.host.com[111.111.111.111], reject=550 5.7.1 admin@domain1.com... Relaying denied


Any ideas, I have searched and nothing makes sense, I do not see why this does not function "properly" on both boxes.

Thanks


All times are GMT -5. The time now is 06:18 PM.