Mail doesn't work anymore :-(

Discussion in 'Installation/Configuration' started by LeoLinux, Nov 23, 2006.

  1. LeoLinux

    LeoLinux New Member

    Hi there,

    sorry but my mail system doesn't work anymore ;-/ I don't know what happend to it?

    here are some logs:

    Code:
    [email protected]:~# cat /var/log/mail.warn
    Nov 19 21:05:53 server1 postfix/postfix-script: fatal: the Postfix mail system is not running
    Nov 19 21:16:43 server1 postfix/postfix-script: fatal: the Postfix mail system is not running
    Nov 19 21:38:28 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=0
    Nov 20 00:44:24 server1 postfix/postfix-script: fatal: the Postfix mail system is not running
    Nov 20 00:45:34 server1 postfix/postfix-script: fatal: the Postfix mail system is not running
    Nov 21 06:25:00 server1 postfix/smtpd[7337]: warning: 201.136.159.129: address not listed for hostname dsl-201-136-159-129.prod-empresarial.com.mx
    Nov 22 00:39:29 server1 imaplogin: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Nov 22 00:39:29 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=5
    Nov 22 21:38:26 server1 courierpop3login: LOGIN FAILED, ip=[::ffff:84.164.208.199]
    Nov 23 18:22:26 server1 imaplogin: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Nov 23 18:22:26 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=5
    

    Code:
    [email protected]:~# cat /var/log/mail.err
    Nov 19 21:05:53 server1 postfix/postfix-script: fatal: the Postfix mail system i                                                                             s not running
    Nov 19 21:16:43 server1 postfix/postfix-script: fatal: the Postfix mail system i                                                                             s not running
    Nov 19 21:38:28 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=0
    Nov 20 00:44:24 server1 postfix/postfix-script: fatal: the Postfix mail system i                                                                             s not running
    Nov 20 00:45:34 server1 postfix/postfix-script: fatal: the Postfix mail system i                                                                             s not running
    Nov 22 00:39:29 server1 imaplogin: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Nov 22 00:39:29 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=5
    Nov 22 21:38:26 server1 courierpop3login: LOGIN FAILED, ip=[::ffff:84.164.208.19                                                                             9]
    Nov 23 18:22:26 server1 imaplogin: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Nov 23 18:22:26 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=5
    
    Code:
    Nov 23 18:18:32 server1 courierpop3login: LOGIN, user=web1_admin, ip=[::ffff:84.164.241.171]
    Nov 23 18:18:33 server1 courierpop3login: LOGOUT, user=web1_admin, ip=[::ffff:84.164.241.171], top=0, retr=0, time=1
    Nov 23 18:19:02 server1 postfix/smtp[1155]: connect to mx0.gmx.net[213.165.64.100]: server dropped connection without sending the initial SMTP greeting (port
     25)
    Nov 23 18:19:02 server1 postfix/smtp[1155]: connect to mx0.gmx.de[213.165.64.100]: server dropped connection without sending the initial SMTP greeting (port
    25)
    Nov 23 18:19:02 server1 postfix/smtp[1155]: D035A18058: to=<[email protected]>, relay=none, delay=150120, status=deferred (connect to mx0.gmx.de[213.1
    65.64.100]: server dropped connection without sending the initial SMTP greeting)
    Nov 23 18:19:02 server1 postfix/smtpd[1157]: connect from mail.gmx.de[213.165.64.20]
    Nov 23 18:19:02 server1 postfix/smtpd[1157]: DDF6918078: client=mail.gmx.de[213.165.64.20]
    Nov 23 18:19:02 server1 postfix/cleanup[1161]: DDF6918078: message-id=<[email protected]>
    Nov 23 18:19:02 server1 postfix/local[1162]: DDF6918078: to=<[email protected]>, relay=local, delay=0, status=sent (delivered to maildir)
    
    
    I don't know, but I'm still able to login via mailclient (moziall & outlook and each webinterface such as roundcube ... )
    it seems that all mails will be still delivered to each but they don't arrive ... so it's like sending mails to /dev/null ;-)

    does anybody have an idea what's the matter with it?

    Thanks to all!

    Leo

    P.S. the ISP is showing me running mailservers ( I had a watchin the ISPconfig webinterface - services...)
     
    Last edited: Nov 23, 2006
  2. LeoLinux

    LeoLinux New Member

    Ok - it seems to work now except one small thing ;-)

    when I try to send mails from my ISPconfig accounts to gmx or web.de they won't be deliverd .... I don't get any error mail back like maildelivery faild or something like that ... and no mail in any spam folder .... it seems that they don't accept mails from me?! is that possible?

    what else and how else could I test that?!

    thx Leo
     
  3. edge

    edge Active Member Moderator

    Do you have a SPF record set for the MX record / domain?

    If not, set one! Lots of providers/servers do not exept mail if the SPF is set wrong, or if it does not exist!

    Also.. A not set revers DNS could also be the problem!
     
    Last edited: Nov 23, 2006
  4. falko

    falko Super Moderator ISPConfig Developer

  5. LeoLinux

    LeoLinux New Member

    hmmm I have a DynDNS account - I don't know what exactly to tell the MX option in my account.

    [​IMG]

    ^^ that's how it looks at the moment. I don't have a static IP address.

    thanks for this clue- I'm not at the MX-Tools blacklist.

    another question is - where are all this undeliverd mails stored now?

    ##########################

    To Edge:
    Do you have a SPF record set for the MX record / domain?

    I'm not sure but I think I didn't ;-). Can you tell me how such a thing has to look like?!

    here are the options for a costumer Domain like leolinux.de which is forwarded to pc1mail.de which is also forwardet to pc1service.gotdns.com ;-) :

    [​IMG]



    Thank you!

    Leander
     
    Last edited: Nov 28, 2006
  6. edge

    edge Active Member Moderator

    LeoLinux,

    You will have to create the SPF record as a TXT

    I'm using the ISPconfig SPF option (as I'm using my own DNS server)

    So, select the TXT and add v=spf1 a mx ?all in the box to the right.
    (I think)..

    More info about creating a SPF here

    A nice way to see if the SPF record is okay, is by sending an email to a gmail account.

    Looking at the headers of the email you will see:

    a good SPF record example: Received-SPF: pass (google.com: domain of [email protected] designates ip_from_your_server as permitted sender)

    a bad SPF record example: Received-SPF: pass (google.com: best guess record for domain of [email protected] designates ip_from_your_server as permitted sender)
    (note the: "best guess record for" part!)

    The [email protected] and ip_from_your_server, should be yours!
     
    Last edited: Nov 28, 2006
  7. LeoLinux

    LeoLinux New Member

    Hi Edge,

    thx for your professional response ;-)

    here is what I got back as email in my mail client:

    Code:
    ... This is the Postfix program at host server1.pc1mail.de.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to <postmaster>
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
    			The Postfix program
    
    <[email protected]>: connect to mx0.gmx.net[213.165.64.100]: server
        dropped connection without sending the initial SMTP greeting
    
    
    
    Reporting-MTA: dns; server1.pc1mail.de
    X-Postfix-Queue-ID: 53FD118085
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Thu, 23 Nov 2006 19:32:23 +0100 (CET)
    Content-Type: text/plain
    
    Final-Recipient: rfc822; [email protected]
    Action: failed
    Status: 4.0.0
    Diagnostic-Code: X-Postfix; connect to mx0.gmx.net[213.165.64.100]: server
        dropped connection without sending the initial SMTP greeting
    
    [... old mail attached ...]
    



    OK I changed it to that:

    [​IMG]






    I'm using my own nameserver also:
    [​IMG]



    This are the only SPF options which I could find in ISP.

    [​IMG]

    [​IMG]

    I hope I don't have to change anything there or do I?



    ########

    and another question ... I tested this account a few days before ... and now 3 days later I got the informaiton back, that it wasn't possible to deliver those test mails .... why is it that slow?? and does anybody know where to change the text of an undelivered mail ... so thtat I can translate that for my german costumers? that would be cool.

    Thx a lot ;-)

    Leander
     
    Last edited: Nov 28, 2006
  8. falko

    falko Super Moderator ISPConfig Developer

    The nameservers for leolinux.de are ns.kunde24.de and ns2.kunde24.de, so there's no need to create records for it on your ISPConfig system:

    Code:
    dig ns leolinux.de
    
    ; <<>> DiG 9.2.1 <<>> ns leolinux.de
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24343
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;leolinux.de.                   IN      NS
    
    ;; ANSWER SECTION:
    leolinux.de.            86400   IN      NS      [B][COLOR="Red"]ns.kunde24.de[/COLOR][/B].
    leolinux.de.            86400   IN      NS      [B][COLOR="Red"]ns2.kunde24.de[/COLOR][/B].
    
    ;; Query time: 25 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Wed Nov 29 16:46:58 2006
    ;; MSG SIZE  rcvd: 72
    Email servers try to deliver emails for 4 days until they give up. You can change it in your Postfix configuration.
     
  9. LeoLinux

    LeoLinux New Member

    ok thx the thing with the delivery time is good to know - do you exactly know in which conf I should look for? if not - that's not really important for the first time ...

    is it necessary to change that in ISP? because I remember that I installed an bind9 on my system - isn't it possible to tell them (my domain reseller) to use my bind9 instead of their ns24nameserver stuff? I mean the option to change that is given from my provider - the only thing where I'm not really sure is if I think correct or if that's not possible because I only use ,one, normal Dynamic DSL connection and one nameserver (the ISPconfig one)?

    btw .. I changed the NS in the conf ... lets wait a few minutes and have a look what happens ..


    THX

    Leander
    ;-)
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Have a look at the maximal_queue_lifetime setting in /etc/postfix/main.cf: http://www.postfix.org/postconf.5.html

    Yes. Have a look here: http://www.howtoforge.com/ispconfig_dns_godaddy
     
  11. LeoLinux

    LeoLinux New Member

    Hmmm ok, but I don't have two ISPconfig Servers. anyway that'S not really important if I can handle that via the bind9 entries/records.


    I tried it like that yesterday ... but without success ;-/ (I replaced pc1mail.de with ns.kunde24.de and ns2.kunde24.de.

    [​IMG]


    but I guess that was not right so I think I have to create something in here:

    [​IMG]


    but what and where? It would be nice if you can give me an example so that I know that for the future ..

    Thanks a lot !!

    Leander

    ;-)
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Using ns.kunde24.de and ns2.kunde24.de in your ISPConfig settings is wrong because you want to use your own DNS server, not those kunde24.de servers.
    Please have a close look again at http://www.howtoforge.com/ispconfig_dns_godaddy .
     
  13. LeoLinux

    LeoLinux New Member

    hmm yes I had and I read:

    I don't have a second ISPconfig Server and I don't have a second public IP. I mean I could install/buy/register all those necessary features - but is that really necessarry to use the ISPconfig Mailsystem?

    Leander


    P.S. the next thing I remember - I only have dynmic IP Address ;-/ ?
     
    Last edited: Dec 3, 2006
  14. falko

    falko Super Moderator ISPConfig Developer

    You don't need to run your own nameservers just for email. You can as well use the current nameservers for it and create the necessary records there.

    Running a nameserver on a dynamic IP address is the worst thing you can do - so don't!
    Sending emails from a dynamic IP address is problematic since most dynamic IP addresses are blacklisted by default. If you want to send emails, you should relay through another mail server: http://www.howtoforge.com/forums/showthread.php?t=72&highlight=relayhost
     
  15. LeoLinux

    LeoLinux New Member

    damn ... ! ;-(
    ok so I have to buy a static IP - I'll do that the next few days ..

    but anyway .. in what way do the costumers notice if I would relay the emails trough another Server?
    how do the addresses look like? are there adverts included? I never did that and have no informations about ... I'll try to google a little about ... but I guess I realy need a static IP ... ;-(

    thx

    Leander

    P.S.
    Now I think I know where the problem was because when I tried it the very first time to send a mail from a ISPconfig account to a gmx account it worked out fine ... but all the days after it didn't - I guess all the other IPs where allready on the blacklist ... except the first one ...

    thx
     
    Last edited: Dec 5, 2006
  16. falko

    falko Super Moderator ISPConfig Developer

    They don't notice it (unless they examine their email headers - but most people have never heard about such a thing like an email header ;) ).

    No, why should there be ads?
     
  17. LeoLinux

    LeoLinux New Member

    ok sounds good. but where to get such an access??

    smtp.ntlworld.com
    pop.ntlworld.com

    can I use any account for that?? I usually use a gmx freemail account - is it possible to use that either? or do I need a special server account at on my Internet Service Provider (1&1) ???


    Leander
     
  18. falko

    falko Super Moderator ISPConfig Developer

    Normally you can ask your ISP (in this case 1&1), but your GMX account should work as well. :)
     
  19. LeoLinux

    LeoLinux New Member

    You know that I'm talking about an usual freemail gmx account wich includes the gmx advert as signatur in every mail?
    I can't belive that but I think I have to try that

    Thx for the howto!
     
  20. falko

    falko Super Moderator ISPConfig Developer

    I don't know if they include ads in mails that you relay. I don't even know if adding ads is allowed...
     

Share This Page