Host name for sendmail.
Constantine
cnst at rbcmail.ru
Fri Jul 25 17:28:48 PDT 2003
Olaf Hoyer wrote:
>On Fri, 25 Jul 2003, Constantine wrote:
>
>
>
>>Olaf Hoyer wrote:
>>
>>
>>
>>>On Fri, 25 Jul 2003, Constantine wrote:
>>>
>>>
>>>Hi!
>>>
>>>Well, do the following:
>>>
>>>in /etc/hosts, enter your domain name.
>>>
>>>then, edit the file: /etc/mail/service.switch (or the corresponding file
>>>location defined in sendmail.cf) with the values :
>>>files dns
>>>
>>>to make sendmail first look in /etc/hosts and then try to resolve via
>>>DNS.
>>>
>>>Alternatively, in sendmail.cf there is the option to specify the own
>>>host name in case sendmail cannot determine it automagically.
>>>
>>>BTW: sendmail wants some FQDN, like cnts.local or something. Missing
>>>dots are iritating to sendmail.
>>>
>>>HTH
>>>Olaf
>>>
>>>
>>>
>>>
>>>
>>Well, thank you. And the other problem I got, is that when I tried to
>>use my sendmail to send the previous message to this FreeBSD.org postal
>>list, I got these errors in my maillog:
>>Jul 24 17:18:11 cnst sm-mta[1101]: h6OImYZI000711:
>>to=<freebsd-questions at freebsd.org>, delay=02:29:36, xdelay=00:00:11,
>>mailer=esmtp, pri=510414, relay=mx1.freebsd.org. [216.136.204.125],
>>dsn=4.2.0, stat=Deferred: 450 <cnst>: Helo command rejected: Host not found
>>
>>
>
>Hi!
>
>Well, thats clear: Your box comes with the fake FQDN of cnst in the HELO
>command, which cannot be resolved by the remote host, in this case
>mx1.freebsd.org, so it rejects the mail.
>(Basic SPAM protection)
>
>Solutions:
>
>- The box gets the hostname corresponding to the IP that is
>assigned at dialup.
>
>So, if you get 1.2.3.4 as IP, which resolves to:
>1-2-3-4.dial.provider.com you would take care that this appears in the
>HELO message.
>
>- you use your providers MTA as smarthost.
>In sendmail.cf it shall be the DS macro, IIRC.
>Is the better way, because Dial-up-IP-ranges are often blocked due to
>spammers and often misconfigured MTA...
>
>
>
>I also use a 4.8 box as DSL Router via PPPoE, and there is a sendmail on
>it. Ok, I'd have to check whether he can relay directly, and what IP in
>the HELO appears, but the box itself can identify its IP without probs.
>I'm also using the tunnel interface to connect...
>
>But I'd recommend using a smarthost. Is better and cleaner.
>
>Olaf
>
I have a cable modem with nat, so the FreeBSD box itself does not has
any routable ip-address (the ip, that is connects the box to the
internet is 192.168.1.2). What can I do in this case?
And actually, I started up my own SMTP-server, because the one that was
provided by my ISP was in some spam-blocking programmes, so I was unable
to send some messages through it. So, as I understood, smarthost will
not work for me.
Cheers,
Constantine.
More information about the freebsd-questions
mailing list