Skip to content

Improve details for error "Mail: Mailserver response error -- 501 5.1.3 Invalid address" #2

@sjvudp

Description

@sjvudp

It seems MS Exchange is rather picky regarding valid E-Mail addresses:
While trying to configure the best possible addresses, I get errors like this:

[2024-04-16T11:04:09+0200] error    : Cannot open a connection to the mailserver localhost:25 -- Operation now in progress
[2024-04-16T11:04:14+0200] error    : Mail: Mailserver response error -- 501 5.1.3 Invalid address
[2024-04-16T11:04:14+0200] info     : Adding event to the queue file /var/lib/monit/1713258254_1d20d10 for later delivery

There are a few issues with this:

  • The localhost server was unavailable, obviously, but it's unclear which server said 501 5.1.3 Invalid address
  • More significantly, it's not clear how the address the server rejected actually looked like
  • In the spool file there is no E-Mail address at all: One of the spool files looks like this:
# hexdump -C /var/lib/monit/1713258264_1c290f0
00000000  04 00 00 00 00 00 00 00  04 00 00 00 50 00 00 00  |............P...|
00000010  00 00 00 00 02 00 00 00  00 00 00 00 13 3f 1e 66  |.............?.f|
00000020  00 00 00 00 00 83 07 00  00 00 00 00 80 fd d2 01  |................|
00000030  00 00 00 00 00 00 01 01  01 00 00 00 01 01 01 01  |................|
00000040  01 01 01 01 01 00 00 00  00 00 00 00 20 b3 c0 01  |............ ...|
00000050  00 00 00 00 b0 77 c2 01  00 00 00 00 00 00 00 00  |.....w..........|
00000060  00 00 00 00 07 00 00 00  00 00 00 00 66 73 5f 74  |............fs_t|
00000070  6d 70 00 3e 00 00 00 00  00 00 00 69 6e 6f 64 65  |mp.>.......inode|
00000080  20 75 73 61 67 65 20 31  32 34 39 36 20 6d 61 74  | usage 12496 mat|
00000090  63 68 65 73 20 72 65 73  6f 75 72 63 65 20 6c 69  |ches resource li|
000000a0  6d 69 74 20 5b 69 6e 6f  64 65 20 75 73 61 67 65  |mit [inode usage|
000000b0  20 3e 20 31 30 30 30 5d  00 01 00 00 00 00 00 00  | > 1000]........|
000000c0  00 01                                             |..|
000000c2

Most of all I think I had fixed the bad E-Mail address back to the one that had worked before, but still no messages are sent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions