Mails working randomly

Discussion in 'Installation/Configuration' started by xelios, Dec 27, 2008.

  1. xelios

    xelios New Member

    Hello.

    I configured a Debian server with ISPConfig following the complete guide "The Perfect Setup - Debian Etch".
    I host several sites on this server. Websites are working but that's not the case concerning emails.

    Imagine I have two websites, emails should be like this :
    1. first.com : using Google Apps :
      • Remote Mailserver
      • no Mx record
    2. second.com : redirects to first.com's Google Apps :
      • Local Mailserver
      • MX record
      • Email redirection in the user ISP settings

    The problem is that it seems to work randomly. Once it redirects and everything is ok, once it gives
    Code:
    <[email protected]> (expanded from <[email protected]>): unknown user: "user1"
    Any clue about this ? I completely re-installed the private server twice but it still doesn't work. Thank's a lot.

    PS : sorry if my English is bad. ;-)
     
  2. xelios

    xelios New Member

    I just made a quick test. I sent 4 mails to the same second account. The result is :
    • 2 mails well redirected
    • 1 mail was in the local inbox (RoundCube)
    • 1 mail gave an "undelivered..."

    What happens ?? How is it possible ?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    What's in the mail log when an email ends up in the local inbox and when you get an "undelivered"?
     
  4. xelios

    xelios New Member

    Thank you for the answer.

    Well, right now I don't receive them locally on the server. Only "undelivered" :
    Code:
    Dec 28 13:41:06 imapd: Connection, ip=[::ffff:127.0.0.1]
    Dec 28 13:41:06 imapd: LOGIN, user=befox, ip=[::ffff:127.0.0.1], protocol=IMAP
    Dec 28 13:41:07 imapd: LOGOUT, user=befox, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=46, sent=432, time=0
    Dec 28 13:41:30 postfix/smtpd[17075]: connect from web25806.mail.ukl.yahoo.com[217.12.10.191]
    Dec 28 13:41:30 postfix/smtpd[17075]: E4659FE249: client=web25806.mail.ukl.yahoo.com[217.12.10.191]
    Dec 28 13:41:30 postfix/cleanup[17078]: E4659FE249: message-id=<[email protected]>
    Dec 28 13:41:31 postfix/qmgr[16604]: E4659FE249: from=<>, size=1781, nrcpt=1 (queue active)
    Dec 28 13:41:31 postfix/smtpd[17075]: disconnect from web25806.mail.ukl.yahoo.com[217.12.10.191]
    Dec 28 13:41:31 postfix/cleanup[17078]: 22A90FE24A: message-id=<[email protected]>
    Dec 28 13:41:31 postfix/qmgr[16604]: 22A90FE24A: from=<>, size=1911, nrcpt=1 (queue active)
    Dec 28 13:41:31 postfix/local[17079]: E4659FE249: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.31, delays=0.21/0.01/0/0.09, dsn=2.0.0$
    Dec 28 13:41:31 postfix/qmgr[16604]: E4659FE249: removed
    Dec 28 13:41:31 postfix/local[17079]: 22A90FE24A: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.24, delays=0.08/0/0/0.15, dsn=5.1.1, sta$
    Dec 28 13:41:31 postfix/cleanup[17078]: 5C7D7FE24D: message-id=<[email protected]>
    Dec 28 13:41:31 postfix/qmgr[16604]: 5C7D7FE24D: from=<>, size=3658, nrcpt=1 (queue active)
    Dec 28 13:41:31 postfix/bounce[17080]: 22A90FE24A: sender non-delivery notification: 5C7D7FE24D
    Dec 28 13:41:31 postfix/qmgr[16604]: 22A90FE24A: removed
    Dec 28 13:41:31 postfix/smtp[17081]: 5C7D7FE24D: host c.mx.mail.yahoo.com[216.39.53.3] refused to talk to me: 421 Message from (91.121.203.172) temporarily deferred$
    Dec 28 13:41:32 postfix/smtp[17081]: 5C7D7FE24D: to=<>, relay=b.mx.mail.yahoo.com[66.196.97.250]:25, delay=1.2, delays=0.13/0.01/0.45/0.56, dsn=2.0.$
    Dec 28 13:41:32 postfix/qmgr[16604]: 5C7D7FE24D: removed
    Plus, if I ask for a redirection to a normal Gmail address, it works fine.

    But it doens't work with a Google Apps account with MX configured on the server. It seems the server looks for the Google Apps account ([email protected]) on the the server, in the undeliverd mail :
    Code:
    <[email protected]> (expanded from <[email protected]>): unknown user: "user1"
     
    Last edited: Jan 20, 2009
  5. falko

    falko Super Moderator Howtoforge Staff

    Please make sure your server isn't blacklisted: http://mxtoolbox.com/blacklists.aspx
     
  6. xelios

    xelios New Member

    Checked. No, it isn't blacklisted...
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Do your email domains have SPF records? Does your mail server have a PTR record?
     

Share This Page