I looked through some of the logs and it seems to try to make 10-20 requests per second. I used to have SSH bot login attemps so I thought this was due to bots trying to break into my box, so I added some firewall rules but I still have the mail issue. I have never set up SMPT on my server nor plan on in the future so I just want these logs from filling up disk space so quickly. Any help would be appreciated!

Here are some example logs:

May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bm024443: to=root, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5701858, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bn024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5703365, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bj024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5703365, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bk024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5703552, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bo024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5704907, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bp024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5705095, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bl024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5705095, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bq024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5706661, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1br024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5709596, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bs024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5711161, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bt024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5711344, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bu024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5711452, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May  3 06:41:09 lemp-s-1vcpu-1gb-nyc3-01 sm-msp-queue[28406]: 0429f1bv024443: to=postmaster, delay=20:58:06, xdelay=00:00:00, mailer=relay, pri=5711642, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
edited by MattIPv4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @rudyvald,

If you’ve used the LEMP 1-Click image from the Marketplace it includes Postfix as well.

For more information about the emails, I could suggest running mailq, feel free to share a snippet of the output of the command here as well.

Regards,
Bobby

  • Hey Bobby!

    I ran it and it took a couple minutes but then it spammed out this:
    (i ommited the first results, just pasted the end of the file)

    
    046LL176013271    51161 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL177013271    52423 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL178013271    53647 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL179013271    56156 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
                    Total requests: 48811
    MTA Queue status...
    046LL173013271    47376 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL174013271    48213 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL175013271    49898 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL176013271    51161 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL177013271    52423 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL178013271    53647 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
    046LL179013271    56156 Wed May  6 21:23 MAILER-DAEMON
                     (Deferred: Connection refused by [127.0.0.1])
                                             postmaster
                    Total requests: 48811
    
    
    • Hi there @rudyvald,

      What I would do in this case is inspect the message and see if I could get some more information on where those messages are coming from, you can do that with:

      • postcat -q MESSAGE_ID_HERE

      My guess is that there might be a script which is generating those emails.

      If you are sure that those emails are not needed, what you could do is clear the mail queue with this command here:

      • postsuper -d ALL

      Also to stop this you could stop and disable the Postfix service so that this does not happen.

      Let me know how it goes!
      Regards,
      Bobby

Submit an Answer