Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Avoiding "Domain not found" errors

33 views
Skip to first unread message

N. Yaakov Ziskind

unread,
Feb 7, 2012, 11:15:35 PM2/7/12
to
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=<sam...@domain.example> proto=ESMTP helo=<chocolate.egps.com>

Where the sam...@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.

Thanks!


DN Singh

unread,
Feb 8, 2012, 12:20:50 AM2/8/12
to
The setting can be changed in the parameter "smtpd_sender_restrictions" reject_unknown_sender_domain, if it is necessary.

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.

N. Yaakov Ziskind

unread,
Feb 8, 2012, 1:06:44 AM2/8/12
to
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?

Reindl Harald

unread,
Feb 8, 2012, 3:04:22 AM2/8/12
to


Am 08.02.2012 07:06, schrieb N. Yaakov Ziskind:
> 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.

so what do you want?
let them in or reject them

>> 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?

fix the dns of the sending domain
postfix is not interested in the "main-domain" as most software is not

you can simply no decide what is the main domain

"yourdomain.at"
"yourdomain.co.at"

with your logic you would let in all from ".co.at"?
have fun with that!


signature.asc

/dev/rob0

unread,
Feb 8, 2012, 7:12:26 AM2/8/12
to
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=<sam...@domain.example> proto=ESMTP
> > > helo=<chocolate.egps.com>
> > >
> > > Where the sam...@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:

0 new messages