> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-4.-enumeration/6.-smtp-enumeration.md).

# 6. SMTP Enumeration

SMTP enumeration is performed to obtain a list of valid users, delivery addresses, message recipients on an SMTP server. Ports 25,2525 or 587.

## 1. SMTP Enumeration using Nmap

enumerate smtp users

```
nmap -p 25 --script=smtp-enum-users 192.168.18.110
```

Enumerate smtp relays on target

```
nmap -p 25 --script smtp-open-relay 192.168.18.110
```

Enumerate smtp commands

```
nmap -p 25 --script smtp-commands 192.168.18.110
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2F9EnQsQWCqEK9iJel0Qcj%2Fimage.png?alt=media&amp;token=5c2f9ba1-05c5-41b1-8a4f-cee6163fde68" alt=""><figcaption></figcaption></figure>

Using this information, the attackers can perform password spraying attacks to gain unauthorized access to the user accounts.

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
