Koozali.org: home of the SME Server

SME v5.6 Fetchmail in combination with qmailhandle

molski

SME v5.6 Fetchmail in combination with qmailhandle
« on: February 19, 2003, 12:34:53 AM »
On my v5.6 server I installed the fetchmail RPM and everything works fine. After that I installed the qmailhandle RPM and then fetchmail don't seems to work correctley anymore. This is what happens: If I send a mail to mailaccount 1 (my ISP's popbox), fetchmail will try to send the mail to mailaccount 2 (one of my SME useraccounts), only instead of receiving the mail I get this error message:

Reporting-MTA: dns; localhost

Final-Recipient: rfc822; molski@mail..nl
Last-Attempt-Date: Tue, 18 Feb 2003 22:10:06 +0100
Action: failed
Status: 5.0.0
Diagnostic-Code: 553 Sorry, that is an invalid e-mail address

I think this has something to do with the @mail part, but I don't exactly know what :(

Can somebody maybe help me fixing this problem ?

My regards,

Molski

Peter Schubert

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #1 on: February 19, 2003, 08:52:03 AM »
Hi Molski,

which qmailhandle RPM ???

Molski

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #2 on: February 19, 2003, 12:11:04 PM »
I installed this qmailhandle RPM : e-smith-qmHandle-1.0.0-7.noarch.rpm
and the fetchmail RPM for SME v5.6

Peter Schubert

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #3 on: February 19, 2003, 03:03:47 PM »
There are a few different "fetchmail" contribs for SME.
qmHandle has nothing to do with this error !
In this contrib are NO changes in the mail configuration, only extra progams witch run only once if you use the panel..

Did you restart the server ?

The @mail part is normal, if your Server is named "mail".

Molski

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #4 on: February 20, 2003, 12:11:34 PM »
I will try to completely remove the fetchmail RPM and then install it again. The fetchmail RPM I use adds a Mail Users Panel in the server-manager and is able to get the mail from multiple popboxes. It was an RPM that is updated from v5.5 to use in combination with v5.6 it has worked before only after installing the qmailhandle contrib it fails to get my mails.

My regards,

Molski

molski

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #5 on: February 20, 2003, 10:27:54 PM »
Well deleting the fetchmail contrib and installing and configure it again didn't work, I still receive the same error.

Molski

molski

Re: SME v5.6 Fetchmail in combination with qmailhandle
« Reply #6 on: February 21, 2003, 02:52:26 AM »
I found the problem with fetchmail, but now only a way to resolve my problem.
The fetchmail template "90fetchmail" in /sbin/e-smith/templates-custom/etc/fetchmail creates these lines in /etc/fetchmail :

/usr/bin/fetchmail -d0 --silent --syslog --fetchmailrc - <set postmaster "postmaster"
set bouncemail
set properties ""
poll mail.isp.nl with proto POP3 and options no dns  user "username" smtpaddress mail.smeserver.nl with password "password" is user here fetchall

The last line creates the "smtpaddress mail.smeserver.nl" . This is my problem! When I change "smtpaddress mail.smeserver.nl" into "smtpaddress smeserver.nl"
fetchmail will work. So all I need to remove is the "mail." part and then the problems are gone. But can someone help me how to change this in the fetchmail template ? It has to be changed here I think:

 else
                        {
                            $OUT .="#\n";
                            $OUT .="#   Mail N".$i." Account for : ".$name." copy to ".$usrcpy." \n";
                            $OUT .=$staticvalue."set invisible\n";
                            $OUT .="poll ".$mserv." with proto ".$mtype."".$dnstyp." user \"".$mname."\" smtpaddress ".$dom." with password \"".$mpass."\" is ".$usrcpy." here keep fetchall \n";
                            $OUT .="EOF\n";


Simply changing smtpaddress ".$dom." into smtpaddress "molski.nl" does not work. So if somebody can help me.....please!

My regards,

Molski