0

Almost always I can see many smtp processes in ps aux command output like this:

postfix 924674 0.4 0.0 44460 9212 ? S 18:54 0:00 smtp -t unix -u -c postfix 924675 0.2 0.0 44460 9108 ? S 18:54 0:00 smtp -t unix -u -c postfix 924676 0.2 0.0 44460 9352 ? S 18:54 0:00 smtp -t unix -u -c postfix 924677 0.5 0.0 44460 9156 ? S 18:54 0:00 smtp -t unix -u -c postfix 924678 0.2 0.0 44460 9316 ? S 18:54 0:00 smtp -t unix -u -c postfix 924679 0.2 0.0 44460 9268 ? S 18:54 0:00 smtp -t unix -u -c postfix 924680 0.2 0.0 44460 9208 ? S 18:54 0:00 smtp -t unix -u -c postfix 924681 0.2 0.0 44460 9328 ? S 18:54 0:00 smtp -t unix -u -c postfix 924682 0.2 0.0 44460 9152 ? S 18:54 0:00 smtp -t unix -u -c 

The total memory (VSZ column) of these processes is sometimes even 1 GBytes.

Is my server hacked and used by hackers for sending emails?

How can I stop it?

  • Note that smtp server is not installed on my server
1
  • smtp is postfix's SMTP and LMTP delivery agent (in contrast, smtpd with a d is postfix's SMTP daemon which listens for incoming connections) - i.e. it delivers both local and smtp mail. You can check if there's any mail in the queue with mailq, and check whether smtp is attempting to deliver any mail with netstat -tpan | grep smtp$. Also, have you looked in /var/log/mail.log for evidence of unusual mail activity? or tried running journalctl -u postfix -S today to see today's mail logs? Commented Nov 16 at 23:36

1 Answer 1

0

SMTP server IS installed on your system, it is called postfix. Stop it with systemctl stop postfix & if you do not want it, then use your package manager to remove it.

Many distros install an smtp server & have it only listen on the localhost addresses. This enables some software to email messages locally.

VSZ is the virtual size, not the resident size - so no one cares if it is sitting at 1GB. You should read up on how unix/linux allocates memory, specifically shared memory. See also RSS/VSZ difference

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.