I cant send emails error "cant connect to server

i cant send emails error “cant connect to server” . i dont know why i could be able to login to the snappy mail but cant be able to send emails error ''cant connect to server" .I literally dont know why and the reason about that can you please help me

Current Version:
2.3
Build:
6
Current Commit:
2c0e5fd48d7485f8cd991148520d97f8e0766f43

mail logs
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 1: fl=0x8001, mode=20666: CHR: dev=0/6, ino=6, nlink=1, u/gid=0/0, size=0
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 2: fl=0x8001, mode=20666: CHR: dev=0/6, ino=6, nlink=1, u/gid=0/0, size=0
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /run/systemd/journal/dev-log]]
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 4: fl=0x8002, mode=100640: dev=8/3, ino=3407873, nlink=1, u/gid=0/123, size=916
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 5: fl=0x8000, mode=100640: dev=8/3, ino=3407906, nlink=1, u/gid=0/123, size=2449
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 6: fl=0x8000, mode=100640: dev=8/3, ino=12850232, nlink=1, u/gid=115/123, size=12288
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 7: fl=0x8000, mode=100640: dev=8/3, ino=12850232, nlink=1, u/gid=115/123, size=12288
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 9: fl=0x1, mode=10600: FIFO: dev=0/13, ino=77407, nlink=1, u/gid=0/123, size=0
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: 10: fl=0x0, mode=10600: FIFO: dev=0/13, ino=77408, nlink=1, u/gid=0/123, size=0
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: MCI@0x0: NULL
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: MCI@0x0: NULL
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 48AGIU3U116959: to=[email protected], delay=23:26:20, xdelay=00:00:00, mailer=local, pri=12900000, dsn=4.0.0, stat=Operating system error
Sep 11 17:44:50 vmi2015310 sm-mta[5372]: 489NDF62066452: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:44:50 vmi2015310 sm-mta[5372]: 489NDF62066452: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:44:50 vmi2015310 sm-mta[5366]: 489NDF62066452: to=[email protected], delay=1+16:31:35, xdelay=00:00:00, mailer=local, pri=22080000, dsn=4.0.0, stat=Operating system error
Sep 11 17:48:29 vmi2015310 dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5558, TLS, session=<X0jj69khxpZ/AAAB>
Sep 11 17:48:29 vmi2015310 dovecot: imap([email protected])<5558><X0jj69khxpZ/AAAB>: Logged out in=407 out=1184 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 11 17:48:31 vmi2015310 dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5560, TLS, session=<uMX769khxu1/AAAB>
Sep 11 17:48:31 vmi2015310 dovecot: imap([email protected])<5560><uMX769khxu1/AAAB>: Logged out in=105 out=985 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 11 17:54:50 vmi2015310 sm-mta[5800]: 48BEOqvH000777: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5800]: 48BEOqvH000777: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48BEOqvH000777: to=[email protected], ctladdr=[email protected] (0/0), delay=01:29:58, xdelay=00:00:00, mailer=local, pri=840984, dsn=4.0.0, stat=Operating system error
Sep 11 17:54:50 vmi2015310 sm-mta[5801]: 48ANDQGq138180: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5801]: 48ANDQGq138180: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48ANDQGq138180: to=[email protected], delay=16:41:24, xdelay=00:00:00, mailer=local, pri=9210000, dsn=4.0.0, stat=Operating system error
Sep 11 17:54:50 vmi2015310 sm-mta[5802]: 48ALwv9q133799: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5802]: 48ALwv9q133799: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48ALwv9q133799: to=[email protected], delay=17:55:53, xdelay=00:00:00, mailer=local, pri=9930000, dsn=4.0.0, stat=Operating system error
Sep 11 17:54:50 vmi2015310 sm-mta[5803]: 48ALClSh131671: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5803]: 48ALClSh131671: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48ALClSh131671: to=[email protected], delay=18:42:03, xdelay=00:00:00, mailer=local, pri=10290000, dsn=4.0.0, stat=Operating system error
Sep 11 17:54:50 vmi2015310 sm-mta[5804]: 48AGIU3U116959: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5804]: 48AGIU3U116959: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: SYSERR(root): putbody: write error: Broken pipe
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 0: fl=0x8000, mode=20666: CHR: dev=0/6, ino=6, nlink=1, u/gid=0/0, size=0
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 1: fl=0x8001, mode=20666: CHR: dev=0/6, ino=6, nlink=1, u/gid=0/0, size=0
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 2: fl=0x8001, mode=20666: CHR: dev=0/6, ino=6, nlink=1, u/gid=0/0, size=0
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /run/systemd/journal/dev-log]]
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 4: fl=0x8002, mode=100640: dev=8/3, ino=3407909, nlink=1, u/gid=0/123, size=916
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 5: fl=0x8000, mode=100640: dev=8/3, ino=3407906, nlink=1, u/gid=0/123, size=2449
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 6: fl=0x8000, mode=100640: dev=8/3, ino=12850232, nlink=1, u/gid=115/123, size=12288
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 7: fl=0x8000, mode=100640: dev=8/3, ino=12850232, nlink=1, u/gid=115/123, size=12288
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 9: fl=0x1, mode=10600: FIFO: dev=0/13, ino=81711, nlink=1, u/gid=0/123, size=0
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: 10: fl=0x0, mode=10600: FIFO: dev=0/13, ino=81712, nlink=1, u/gid=0/123, size=0
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: MCI@0x0: NULL
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: MCI@0x0: NULL
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 48AGIU3U116959: to=[email protected], delay=23:36:20, xdelay=00:00:00, mailer=local, pri=12990000, dsn=4.0.0, stat=Operating system error
Sep 11 17:54:50 vmi2015310 sm-mta[5805]: 489NDF62066452: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5805]: 489NDF62066452: SYSERR(root): Cannot exec /usr/sbin/sensible-mda: No such file or directory
Sep 11 17:54:50 vmi2015310 sm-mta[5799]: 489NDF62066452: to=[email protected], delay=1+16:41:35, xdelay=00:00:00, mailer=local, pri=22170000, dsn=4.0.0, stat=Operating system error

Hello @abdul545,

From the mail logs it suggests that sensible-mda may not be installed or properly set up on your server, leading to issues with email delivery.

Other issues:

  1. Ensure that your SMTP settings are correctly configured. You can do this by navigating to the SnappyMail admin interface at https://SERVER_URL:8090/snappymail/?admin#/domains and testing the SMTP connection for all domains by clicking on the asterisk (*) next to each domain
  2. Verify that all DNS records are correctly set up that includes all SPF and DKIM records
  3. Can you confirm if ports all open - 25 for SMTP, 587 for SMTP with STARTTLS, and 993 for IMAP