[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dial-up PC: sendmail doesn't send mails
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Dial-up PC: sendmail doesn't send mails
- From: Jacob Meuser <jakemsr_(_at_)_clipper_(_dot_)_net>
- Date: Sun, 12 Aug 2001 17:38:06 -0700
On Sun, Aug 12, 2001 at 01:58:21PM +0200, Alex Farber wrote:
>
> Are you sure, that I have to add the "-bd" flag if I only
> want to being able to send mails? (I fetch my mails from
> POP3-box using fetchmail+procmail+mutt).
The way I understand it, fetchmail sends mail to localhost. You need
'-bd' to be able to recieve the mail.
>
> My second question is, why do I get
>
> Aug 12 13:37:21 pref sendmail[1388]: gethostbyaddr(192.168.1.1) failed: 1
You should add the line :
lookup file bind
to /etc/hosts.
You might also want to add the line:
enable dns
to /etc/ppp/ppp.conf.
I'm a little curious about where the 192.168.1.1 came from. If you have
a NIC with that address, you should add a relevant line to /etc/hosts.
>
> pref:alex {104} cp /usr/share/sendmail/cf/openbsd-proto.mc ~
>
> Then edited that file to add mailto.t-online.de (SMTP-server of my ISP):
>
I would suggest starting with elbereth.mc. It's a good example of
define ('SMART_HOST').
> pref:alex {104} cat ./openbsd-proto.mc
> divert(-1)
> # ....
> divert(0)dnl
> VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.3 $')
> OSTYPE(openbsd)
> FEATURE(nouucp, `reject')
> MAILER(local)
> MAILER(smtp)
> DAEMON_OPTIONS(`Family=inet, address=0.0.0.0, Name=MTA')dnl
> DAEMON_OPTIONS(`Family=inet6, address=::, Name=MTA6, M=O')dnl
>
> define(`SMART_HOST',`smtp:mailto.t-online.de')
> MASQUERADE_AS(`t-online.de')
> FEATURE(`masquerade_envelope')
>
> dnl
> dnl Enforce valid Message-Id to help stop spammers
> dnl
> LOCAL_RULESETS
> HMessage-Id: $>CheckMessageId
>
> SCheckMessageId
> R< $+ @ $+ > $@ OK
> R$* $#error $: 553 Header Error
>
> Then ran m4 on it:
>
> pref:alex {105} m4 /usr/share/sendmail/m4/cf.m4 openbsd-proto.mc > sendmail.cf
>
> Then edited sendmail.cf and removed the comment from the line
>
> # 8-bit data handling
> O EightBitMode=pass8
>
> (since I'd like to be able to send cyrillic koi8-r messages).
>
> And then copied that file to /etc/mail/sendmail.cf
> and sent kill -HUP to the sendmail process.
>
> Now it seems to work, but I get the following in the maillog:
>
> Aug 12 13:37:21 pref sendmail[1388]: gethostbyaddr(192.168.1.1) failed: 1
> Aug 12 13:37:22 pref sendmail[1388]: f7CBbMb01388: from=alex, size=382, class=0, nrcpts=1, msgid=<20010812133721_(_dot_)_A1170_(_at_)_pref>, relay=alex_(_at_)_localhost
> Aug 12 13:37:23 pref sendmail[29700]: f7CBbMb01388: to=alex_(_at_)_kawo2_(_dot_)_rwth-aachen_(_dot_)_de, ctladdr=alex (1000/0), delay=00:00:01, xdelay=00:00:01, mailer=smtp, pri=30382, relay=fwdallmx.sul.t-online.de. [194.25.134.25], dsn=2.0.0, stat=Sent (Message accepted.)
>
> If it matters, here's what I have in /etc/hosts
>
> pref:log {105} cat /etc/hosts
> # ...
> ::1 localhost localhost.my.domain
> 127.0.0.1 localhost pref
> #192.168.254.254 noname
>
> And here is my external interface:
>
> pref:log {106} ifconfig tun0
> tun0: flags=11<UP,POINTOPOINT> mtu 1490
> inet 217.82.203.112 --> 217.5.98.52 netmask 0xffffff00
>
--
<jakemsr_(_at_)_jakemsr_(_dot_)_com>
<jakemsr_(_at_)_clipper_(_dot_)_net>
<jakemsr_(_at_)_granitesky_(_dot_)_com>
Visit your host, monkey.org