email issues

Discussion in 'Installation/Configuration' started by madsage, Dec 28, 2011.

  1. madsage

    madsage New Member

    Okay, i have run into an issue.

    First, I would like to use fetchmail to import some emails for a domain from another smtp server.

    I add everything servername to import from, pop user (in this case), password etc.. (also i have tried imap with same result)

    my ispconfig/cron.log is full of this;

    [email protected]: error resolving name ([Errno -2] Name or service not known)

    It seems somewhere. possibly a script is butchering the syntax, by adding an underline to the domainname of the old email server, and adds a .conf to the domainname of the ispconfig emailserver where the fetchmail is to import to.

    please help.


    madsage


    oh, and i'm running 3.0.4.1 on Debian-6 x64 multiserver
     
    Last edited: Dec 29, 2011
  2. madsage

    madsage New Member

    I was able to fix my issue of squirrelmail, attachment Error by performing the following;



    1) create directory /usr/share/squirrelmail/attach
    2) chmod 733 -R /usr/share/squirrelmail/attach
    2) squirrelmail-configure
    3) choose 4(General Options) and press Enter
    4) choose 2(Attachment Directory) and paste /usr/share/squirrelmail/attach

    Not sure why it matters, I could not get it to work in the /var/spool dir


    Now i just have the fetchmail issue, attaches .conf to the end of the domain.

    [email protected]: error resolving name ([Errno -2] Name or service not known)

    Thanks in advance,

    madsage
     
    Last edited: Dec 29, 2011
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the config file in the /etc/getmail directory.
     
  4. madsage

    madsage New Member

    okay, I traced some of the problems.

    It seems becuase the old user@domain is the same the ispconfig MTA believes the email is looping.

    As discussed in this thread;

    http://www.howtoforge.com/forums/newreply.php?do=newreply&noquote=1&p=267239

    It bounces the mail as a loop.
    Logs are as followed;

    2011-12-29 10:10:13 msg 180/227 (3605 bytes) msgid 1323726046.13471.postoffice2,S=3605 from <[email protected]> delivered to MDA_external command sendmail ()


    Dec 29 10:10:57 mail1-isp postfix/pipe[5129]: 9F8831B254C: to=<[email protected]>, relay=dovecot, delay=0.02, delays=0.02/0/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop for [email protected])
    Dec 29 10:10:57 mail1-isp postfix/cleanup[6044]: A58771B2554: message-id=<[email protected]>
    Dec 29 10:10:57 mail1-isp postfix/qmgr[2199]: A58771B2554: from=<>, size=8108, nrcpt=1 (queue active)
    Dec 29 10:10:57 mail1-isp postfix/bounce[5859]: 9F8831B254C: sender non-delivery notification: A58771B2554
    Dec 29 10:10:57 mail1-isp postfix/qmgr[2199]: 9F8831B254C: removed


    madsage


    its there possibly a work around for this? something i can do to fake the MTA or turn off the mail looping temporary?
     
    Last edited: Dec 29, 2011
  5. madsage

    madsage New Member

    fetchmail ispconf option uses getmail. a little misleading but okay,

    after googling and consulting with some postfix people, it appears what maybe happening, is that getmail adds to the email header delivered, and dovecot is actually bouncing the email as looped?

    does this sound plausible? Is there a work around for this issue?
    Anybody?

    I really would like to use this fetchmail/getmail function.

    I have found, if the usernames are different it does work.
    I guess that may ruleout the whole mail delivered header thing?

    I'm confused, and just need some insight.

    Dec 29 15:50:41 mail1-isp postfix/pipe[27238]: 21E8A1B231B: to=<[email protected]>, relay=dovecot, delay=0.21, delays=0.19/0/0/0.02, dsn=5.4.6, status=bounced (mail forwarding loop for [email protected])


    Till or Falko?
    anybody? =]

    madsage

    postfix+dovecot+getmail
    3.0.4.1 Debian6 x64 multiserver
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. madsage

    madsage New Member

    I have, domain is added, email and the user account created. It is live and working in production. It can send and receive fine.
    I am selecting the account in the panel fetchmail dropdown as the account where the imported email is to import to.

    All is good until postfix/pipe sends it to dovecot. At which point (i believe) it sees the email as looping. being the username and domain match the same account.


    Dec 29 15:50:41 mail1-isp postfix/pipe[27238]: 21E8A1B231B: to=<[email protected]>, relay=dovecot, delay=0.21, delays=0.19/0/0/0.02, dsn=5.4.6, status=bounced (mail forwarding loop for [email protected])


    (the xxxx's in the domain are to mask our clients domain name
    they are the same domain in the logfile.)



    madsage
     
  8. madsage

    madsage New Member

    Okay, I added a new domain. New DNS records for the new domain. A new user, and successfully was able to import email from an external source without issue via the panel fetchmail/getmail function.

    So something is wrong with [email protected] account.
    One thing i did do differnt with this account.

    I did not add the DNS to the ispconfig panel until later, I added the domain and email accounts and pointed the MX record from an external source. Mail did route properly and everything working. then when the website moved over. I added the zone records to the panel and pointedt he registrar to the named on the ispconfig panel.

    I wouldnt suspect this would cause any problems. But it is the only thing i have done differently.

    is there somethign i should check that may have not added because of the order of the setup of this domain?

    Everything else appears to be functioning properly.


    madsage
     

Share This Page