From: M. F. <mfi...@ne...> - 2007-08-16 16:12:55
|
On Thu, August 16, 2007 3:49 pm, Frederic Marchal wrote: > According to fetchmail's man page smtpaddress adds the domain to the > rcpt to, not to the helo of the envelope. > > Have a look at your /etc/hosts. Does the address 127.0.0.1 resolves > first to the name of the machine or to localhost as is usually the case > by default ? > > If localhost is the first name, could you rewrite /etc/hosts to put the > machine name (what you want to see in the helo) as the first name > matching 127.0.0.1 ? Something like: > > 127.0.0.1 machinename.domain.dom machinename localhost.localdomain > localhost > > My guess is that localhost may be the first name matching 127.0.0.1 and > fetchmail uses it in the helo. > Frederic, thanks for your suggestion. /etc/hosts was indeed defaulting to localhost and localhost.localdomain as the only values for 127.0.0.1 Changing it as you suggest _does_ (will it impact other services???): 127.0.0.1 machinename.domain.dom localhost localhost.localdomain causes "hostname" to return "machinename.domain.dom". It is not enough, however, to make fetchmail helo with that value, or so I understand: ################################################################ fetchmail: About to rewrite To: my_...@my... Rewritten version is To: my_...@my... fetchmail: SMTP< 220 machinename.domain.dom ESMTP Postfix fetchmail: SMTP> EHLO localhost fetchmail: SMTP< 250-machinename.domain.dom fetchmail: SMTP< 250-PIPELINING fetchmail: SMTP< 250-SIZE 10240000 fetchmail: SMTP< 250-ETRN fetchmail: SMTP< 250-STARTTLS fetchmail: SMTP< 250-ENHANCEDSTATUSCODES fetchmail: SMTP< 250-8BITMIME fetchmail: SMTP< 250 DSN fetchmail: forwarding to localhost fetchmail: SMTP> MAIL FROM:<a_t...@ya...> SIZE=1192 fetchmail: SMTP< 250 2.1.0 Ok fetchmail: SMTP> RCPT TO:<mfi...@ne...> fetchmail: SMTP< 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname fetchmail: SMTP error: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname fetchmail: SMTP listener doesn't like recipient address `mfi...@ne...' ############################################################## having smtpaddress set or not in the fetchmailrc file doesn't change anything. What now? Thanks, Marco |