Skip to main content

How to get list of bounced email addresses from exim_mainlog?

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! There isn't one command that would give you all the bounces from the logs as they will bounce for different reasons. For example, sending a message to an address that doesn't exist looks like this: 2021-03-25 19:36:21 H=(host.domain.com) [::1]:35794 F= A=dovecot_login:cptest@acicomputers.net rejected RCPT : No Such User Here So you could run a command similar to this to get all of those emails: grep -i "no such user here" /var/log/exim_mainlog
    You'd need to run commands based on the type of bounce you're looking for, and then combine that output together to get a good list. I'm sorry I don't have an easier method to accomplish that.
    0
  • Brooky A
    Super helpful thank you!
    0

Please sign in to leave a comment.