> 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

## 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="/files/WvM2SC0BCbiqcavzIVr6" 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>" %}
