On Wed, Feb 08, 2012 at 01:06:44AM -0500, N. Yaakov Ziskind wrote:
> DN Singh wrote (on Wed, Feb 08, 2012 at 10:50:50AM +0530):
> > The setting can be changed in the parameter 
> > "smtpd_sender_restrictions" reject_unknown_sender_domain,
> > if it is necessary.
> 
> That would let in *all* mail from nonexistent domains, which
> I was hoping to avoid.
> 
> > Postfix looks up the the domain, and if it does not find
> > any info, it rejects the mail.
> > Anyways, the domain in the mail is indeed non-existent.
> 
> But it's a subdomain of a valid domain, and it's a useful
> email .. What's the easiest way to let this email from this
> one sender through?

DN Singh was guessing about smtpd_sender_restrictions, but indeed 
this is a case when you would need another restriction stage. If
your reject_unknown_sender_domain check was being done in 
smtpd_recipient_restrictions, move it to smtpd_sender_restrictions. 
Remove it from all other restriction stages.

Precede that check with a check_client_access lookup:
        38.119.130.7    OK
or, less safe, a check_sender_access lookup:
        vps.jewishwomansonlinecalendar.com      OK

Salt to taste, enjoy.

> > On Wed, Feb 8, 2012 at 9:45 AM, N. Yaakov Ziskind
> > <aw...@ziskind.us> wrote:
> > 
> > > A particular mailer, slightly broken, cannot send mail to a 
> > > postfix (2.7.0) box:
> > >
> > > Feb 5 08:51:16 pizza postfix/smtpd[30453]: NOQUEUE: reject: 
> > > RCPT from chocolate.egps.com[38.119.130.7]: 450 4.1.8 
> > > <nob...@vps.jewishwomansonlinecalendar.com>: Sender address 
> > > rejected: i Domain not found; 
> > > from=<nob...@vps.jewishwomansonlinecalendar.com> 
> > > to=<sample@domain.example> proto=ESMTP 
> > > helo=<chocolate.egps.com>
> > >
> > > Where the sample@domain.example is a valid address on the
> > > local machine.
> > >
> > > What's the easiest to let this mail through? I tried adding
> > > the domain to /var/spool/postfix/etc/hosts, and it didn't
> > > help.

http://www.postfix.org/SMTPD_ACCESS_README.html
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to