(newbie) sendmail Masquerading Help?
Jorge Luis
lists+fedora at jorge.cc
Sat Aug 14 17:32:52 UTC 2004
>>>>> "AD" == Alexander Dalloz <alexander.dalloz at uni-bielefeld.de> writes:
AD> Am Sa, den 14.08.2004 schrieb Jorge Luis um 18:18:
>> My ISP (Verizon) requires SMTP-AUTH (user/password PLAIN) to
>> connect to its smarthost. I have the authorization set up, and
>> I'm trying now to configure sendmail masquerading.
AD> Masquerading for what? verizon.net is hardly your domain.
Perhaps I'm completely off track, and it's not masquerading that I
need. The problem is that the smarthost will not accept mail for
delivery unless I set masquerading. This may be a perversion of what
masqerading is meant to accomplish, but it's the only way I've found
to have /bin/mail send mail through the smarthost.
AD> What happens if you send by using following command - not as
AD> root!:
AD> date | /usr/lib/sendmail -v friends_email at anywhere.com
With masquerading set the message is sent and I get the following
output:
[jorge at satyr jorge]$ date | /usr/lib/sendmail -v
friends_email at anywhere.com
friends_email at anywhere.com... Connecting to [127.0.0.1] via relay...
220 satyr.bogus.jl ESMTP Sendmail 8.12.11/8.12.11; Sat, 14 Aug 2004
13:03:56 -0400
>>> EHLO satyr.bogus.jl
250-satyr.bogus.jl Hello satyr.bogus.jl [127.0.0.1], pleased to meet
you
[... deletia ...]
>>> EHLO satyr.bogus.jl
250-satyr.bogus.jl Hello satyr.bogus.jl [127.0.0.1], pleased to meet
you
[... deletia ...]
>>> MAIL From:<jorge at satyr.bogus.jl> SIZE=29 AUTH=jorge at satyr.bogus.jl
250 2.1.0 <jorge at satyr.bogus.jl>... Sender ok
>>> RCPT To:<friends_email at anywhere.com>
>>> DATA
250 2.1.5 <friends_email at anywhere.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i7EH3uEi002829 Message accepted for delivery
friends_email at anywhere.com... Sent (i7EH3uEi002829 Message accepted
for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 satyr.bogus.jl closing connection
[jorge at satyr jorge]$
With masquerading unset, I get the exact same output, but the message
bounces immediately with this error:
>>> MAIL From:<jorge at satyr.bogus.jl> SIZE=334 AUTH=<>
<<< 553 satyr.bogus.jl does not exist
501 5.6.0 Data format error
Am I leaving an open relay or anything by setting masquerading like
this? I haven't found how else to get /bin/mail through.
AD> sendmail -f is only used if you configured Evolution to use
AD> sendmail for sending rather than using SMTP.
Yes, I have Evolution set to deliver to sendmail.
AD> Though verizon.net is not your domain and masquerading using
AD> it hardly makes sense, these masq entries are
AD> correct. jorge.cc seems to be your domain, so masquerading to
AD> that domain would make sense.
Okay, I set masquerading to jorge.cc, and it works fine. The point
is, I can't use the smarthost without masquerading to something.
AD> What is the output of:
AD> /usr/lib/sendmail -bt -d0.9 < /dev/null
(satyr.bogus.jl is my bogus FQDN.)
> [jorge at satyr jorge]$ /usr/lib/sendmail -bt -d0.9 < /dev/null
Version 8.12.11
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET
NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF STARTTLS
TCPWRAPPERS
USERDB USE_LDAP_INIT
Canonical name: satyr.bogus.jl
a.k.a.: satyr
UUCP nodename: satyr.bogus.jl
a.k.a.: satyr
a.k.a.: localhost.localdomain
a.k.a.: localhost
a.k.a.: [127.0.0.1]
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = satyr
(canonical domain name) $j = satyr.bogus.jl
(subdomain name) $m = bogus.jl
(node name) $k = satyr.bogus.jl
========================================================
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
[jorge at satyr jorge]$
AD> -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653
Thanks, Alexander.
--
Jorge Luis
lists+fedora at jorge.cc
More information about the fedora-list
mailing list