How to get list of bounced email addresses from exim_mainlog?
Hi All,
I was hoping it may be possible to get a list of bounced email addresses from the exim log. Does anyone know how I can parse it to do this?
Thanks!!!! :)
-
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 -
Super helpful thank you! 0
Please sign in to leave a comment.
Comments
2 comments