From: M. F. <mfi...@ne...> - 2007-08-16 13:39:51
|
Hello, I have on my home computer the working fetchmail rc file shown below, to download all the messages from my ISP pop3 server to my home box. Now I want to reuse that file on a Centos server, separate from my home desktop, running postfix, dovecot and fetchmail-6.2.5-6.0.1.el4 On that server there is no user "marco". There are only virtual email users, and I'd rather not add other Unix users there. On the server there is ad-hoc user without shell which is only used by postfix and dovecot to deliver messages to mailboxes: # grep mail_only_account /etc/passwd: mail_only_account:x:2000:2000::/home/mail_only_account:/bin/false However, if I run as user mail_only_account: /usr/bin/fetchmail -vv -f /usr/local/etc/Fetchmail/always fetchmail always gets from postfix: Helo command rejected: need fully-qualified hostname no matter what I write in place of "marco": root, this complete address mfi...@ne..., whatever. More in detail: fetchmail: SMTP< 220 the.server.com ESMTP Postfix fetchmail: SMTP> EHLO localhost fetchmail: SMTP< 250-the.server.com 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:<test_address> BODY=8BITMIME SIZE=1471 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 Why does the rc file which works fine at home fail on the server? OK, if I understand correctly, the problem is that _postfix_ is configured differently, and it's not a fetchmail problem. However, I am not sure if I can (ask to) change the postfix configuration right now, so I'd be very grateful if somebody could let me know if there is any possibility to "patch" it by passing some other option to fetchmail. Alternatively, pointers to the specific postfix setting causing this are also welcome. Thank you in advance for any feedback, Marco ################################################## content of /usr/local/etc/Fetchmail/always: set logfile "/var/log/procmail_logs/log_fetch_mail" #set postmaster "root" set nobouncemail set properties "" #set daemon 60 set no syslog poll pop3.my_isp.com with proto POP3 tracepolls user mycustomer_login there with pass "thepassword" is marco here keep -- Help *everybody* love Free Standards and Software: http://digifreedom.net |
From: Rob M. <rob...@gm...> - 2007-08-16 14:13:06
|
On 8/16/07, M. Fioretti <mfi...@ne...> wrote: <---SNIP---> > Now I want to reuse that file on a Centos server, separate from my home > desktop, running postfix, dovecot and fetchmail-6.2.5-6.0.1.el4 Please upgrade to 6.3.8 > fetchmail always gets from postfix: > > Helo command rejected: need fully-qualified hostname So, fix your postfix configuration :) You may find that setting the fetchmail keyword smtpaddress to something that is qualified will help (see the man page). <---SNIP---> > > Why does the rc file which works fine at home fail on the server? > OK, if I understand correctly, the problem is that _postfix_ is > configured differently, and it's not a fetchmail problem. Correct, this is a postfix configuration issue. > Alternatively, pointers to the specific postfix setting causing this are > also welcome. Having taken 2 seconds to consult the postfix documentation: http://www.seaglass.com/postfix/faq.html#dapp Provides details as to the setting that causes this. I suspect you actually want to further consult the postfix documentation to whitelist localhost from that test. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |
From: M. F. <mfi...@ne...> - 2007-08-16 17:47:22
|
Hello everybody. please accept my apologies for screwed threading, or if I have missed some of the most recent answers and you need to repeat something to me. As you may have noticed by now :-) I am moving from one email server to another these days and is not being painles... This is the situation now. I have found a newer rpm which installed without problems on Centos 4.4: rpm -q fetchmail fetchmail-6.3.4-1.1_6.el4.at this one works! with the /etc/hosts and fetchmailrc files shown below. It may be helpful for the next guy if this difference in HELO behavior is documented somewhere, since I happened into it by using the default packages provided with my chosen distro. Thanks to Rob and all the others who helped me and thanks in advance for any answer to this last question: is there anything in the setup below which is redundant or, worst, may cause any security problem? Marco ####################################################################### etc/hosts: 127.0.0.1 mybox.mynewisp.com localhost localhost.localdomain real.ip.address mybox.mynewisp.com mybox ####################################################################### fetchmailrc: set logfile "/var/log/procmail_logs/log_fetch_mail" set nobouncemail set properties "" set no syslog poll pop3.oldisp.com with proto POP3 tracepolls user oldaccount there with pass "password" is mfi...@ne... here smtphost mybox.mynewisp.com smtpaddress mybox.mynewisp.com |