Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mail.sendmail > #280 > unrolled thread

sendmail dns after fetchmail and procmail

Started by"Luis P. Mendes" <luislupeXXX@gmailXXX.com>
First post2011-06-03 16:52 +0000
Last post2011-06-03 19:38 +0200
Articles 6 — 2 participants

Back to article view | Back to comp.mail.sendmail


Contents

  sendmail dns after fetchmail and procmail "Luis P. Mendes" <luislupeXXX@gmailXXX.com> - 2011-06-03 16:52 +0000
    Re: sendmail dns after fetchmail and procmail Andrzej Adam Filip <anfi@onet.eu> - 2011-06-03 19:42 +0200
      Re: sendmail dns after fetchmail and procmail "Luis P. Mendes" <luislupeXXX@gmailXXX.com> - 2011-06-03 21:11 +0000
        Re: sendmail dns after fetchmail and procmail Andrzej Adam Filip <anfi@onet.eu> - 2011-06-04 06:57 +0200
          Re: sendmail dns after fetchmail and procmail "Luis P. Mendes" <luislupeXXX@gmailXXX.com> - 2011-06-04 11:59 +0000
    Re: sendmail dns after fetchmail and procmail Andrzej Adam Filip <anfi@onet.eu> - 2011-06-03 19:38 +0200

#280 — sendmail dns after fetchmail and procmail

From"Luis P. Mendes" <luislupeXXX@gmailXXX.com>
Date2011-06-03 16:52 +0000
Subjectsendmail dns after fetchmail and procmail
Message-ID<4de91148$0$303$14726298@news.sunsite.dk>
Hi,

I've configured fetchmail to access remote mail servers with 'no dns' 
option enabled.
In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d %T"'
Procmail should distribute mail to my '~/Mail' folder according to some 
rules.

Problem is that many times, fetchmail can't flush mail because sendmail 
does not resolve domain of sender address.
How can I solve this?

I found some tips about disabling dns checking in sendmail.cf but I don't 
know how to do it.
My distro is Slackware64 13.37.
$ sendmail -d0.1
Version 8.14.4
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
		NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING 
SASLv2
		SCANF SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = localhost
  (canonical domain name) $j = localhost
         (subdomain name) $m = <null>
              (node name) $k = localhost
========================================================

Recipient names must be specified


Luis

[toc] | [next] | [standalone]


#281

FromAndrzej Adam Filip <anfi@onet.eu>
Date2011-06-03 19:42 +0200
Message-ID<8el8mo0ov3+B63@stephen.huge.strangled.net>
In reply to#280
"Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
> I've configured fetchmail to access remote mail servers with 'no dns' 
> option enabled.
> In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d %T"'
> Procmail should distribute mail to my '~/Mail' folder according to some 
> rules.
> [...]

Do you mean /etc/fetchmailrc or ~/.fetchmailr?

-- 
[pl>en Andrew] Andrzej A. Filip : anfi@onet.eu : Andrzej.Filip@gmail.com
"Never face facts; if you do, you'll never get up in the morning."
  -- Marlo Thomas

[toc] | [prev] | [next] | [standalone]


#283

From"Luis P. Mendes" <luislupeXXX@gmailXXX.com>
Date2011-06-03 21:11 +0000
Message-ID<4de94e04$0$312$14726298@news.sunsite.dk>
In reply to#281
Fri, 03 Jun 2011 19:42:07 +0200, Andrzej Adam Filip escreveu:

> "Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
>> I've configured fetchmail to access remote mail servers with 'no dns'
>> option enabled.
>> In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d %T"'
>> Procmail should distribute mail to my '~/Mail' folder according to some
>> rules.
>> [...]
> 
> Do you mean /etc/fetchmailrc or ~/.fetchmailr?

Hi, thank you for your help.
I mean ~/.fetchmail/fetchmailrc

Luis

[toc] | [prev] | [next] | [standalone]


#284

FromAndrzej Adam Filip <anfi@onet.eu>
Date2011-06-04 06:57 +0200
Message-ID<3fcw26uy5d+B64@joseph.huge.strangled.net>
In reply to#283
"Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
> Fri, 03 Jun 2011 19:42:07 +0200, Andrzej Adam Filip escreveu:
>
>> "Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
>>> I've configured fetchmail to access remote mail servers with 'no dns'
>>> option enabled.
>>> In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d %T"'
>>> Procmail should distribute mail to my '~/Mail' folder according to some
>>> rules.
>>> [...]
>> 
>> Do you mean /etc/fetchmailrc or ~/.fetchmailr?
>
> Hi, thank you for your help.
> I mean ~/.fetchmail/fetchmailrc

A) fetchmail with "direct procmail" can deliver to Maildir *without*
bothering sendmail.

B) *IF* you procmail script uses sendmail to send messages in response to
procesessed message and sendmail should not use DNS *THEN*

B1) add the following lines to sendmail.mc and generate/compile new sendmail.cf

dnl Do not check envelope sender address via DNS
FEATURE(`accept_unresolvable_domains')dnl
dnl Do not canonify email addresses (the process requires DNS lookups)
FEATURE(`nocanonify')dnl

B2) add the following lines to submit.mc and generate/compile new submit.cf

define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl

C) Do you need (slackware specific) instructions how to generate
sendmail.cf and submit.cf?

-- 
[pl>en Andrew] Andrzej A. Filip : anfi@onet.eu : Andrzej.Filip@gmail.com
Next, upon a stool, we've a sight to make you drool.
Seven virgins and a mule, keep it cool, keep it cool.
  -- ELP, "Karn Evil 9" (1st Impression, Part 2)

[toc] | [prev] | [next] | [standalone]


#286

From"Luis P. Mendes" <luislupeXXX@gmailXXX.com>
Date2011-06-04 11:59 +0000
Message-ID<4dea1e33$0$303$14726298@news.sunsite.dk>
In reply to#284
Sat, 04 Jun 2011 06:57:32 +0200, Andrzej Adam Filip escreveu:

> "Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
>> Fri, 03 Jun 2011 19:42:07 +0200, Andrzej Adam Filip escreveu:
>>
>>> "Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
>>>> I've configured fetchmail to access remote mail servers with 'no dns'
>>>> option enabled.
>>>> In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d
>>>> %T"' Procmail should distribute mail to my '~/Mail' folder according
>>>> to some rules.
>>>> [...]
>>> 
>>> Do you mean /etc/fetchmailrc or ~/.fetchmailr?
>>
>> Hi, thank you for your help.
>> I mean ~/.fetchmail/fetchmailrc
> 
> A) fetchmail with "direct procmail" can deliver to Maildir *without*
> bothering sendmail.
And how can this be done?

> 
> B) *IF* you procmail script uses sendmail to send messages in response
> to procesessed message and sendmail should not use DNS *THEN*
> 
> B1) add the following lines to sendmail.mc and generate/compile new
> sendmail.cf
> 
> dnl Do not check envelope sender address via DNS
> FEATURE(`accept_unresolvable_domains')dnl dnl Do not canonify email
> addresses (the process requires DNS lookups) FEATURE(`nocanonify')dnl
> 
> B2) add the following lines to submit.mc and generate/compile new
> submit.cf
> 
> define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
> 
> C) Do you need (slackware specific) instructions how to generate
> sendmail.cf and submit.cf?
Yes, please.  Sendmail seems to be very complex.
Thank you,

Luis

[toc] | [prev] | [next] | [standalone]


#282

FromAndrzej Adam Filip <anfi@onet.eu>
Date2011-06-03 19:38 +0200
Message-ID<w8f20l54bj+B63@stephen.huge.strangled.net>
In reply to#280
"Luis P. Mendes" <luislupeXXX@gmailXXX.com> wrote:
> Hi,
>
> I've configured fetchmail to access remote mail servers with 'no dns' 
> option enabled.
> In fetchmailrc I define: 'mda "/usr/bin/procmail -m .procmailrc -d %T"'
> Procmail should distribute mail to my '~/Mail' folder according to some 
> rules.
>
> Problem is that many times, fetchmail can't flush mail because sendmail 
> does not resolve domain of sender address.
> How can I solve this?
> [...]

Do not call/execute sendmail in .prcmailrc?

Anyway 
1) I personally use mda like the one below:
   mda "/usr/bin/procmail -tY -f %F -m /home/anfi/pop.rc"
2) I do not think procmail likes mixing -d and -m

-- 
[pl>en Andrew] Andrzej A. Filip : anfi@onet.eu : Andrzej.Filip@gmail.com
That must be wonderful: I don't understand it at all.
  -- Moliere

[toc] | [prev] | [standalone]


Back to top | Article view | comp.mail.sendmail


csiph-web