Page 1 of 1

inbound email works fine, outbound emails not delivering

PostPosted: Sat Nov 20, 2021 9:56 am
by bronson
specs:
Vicibox10 install
Version: 2.14b0.5
SVN Version: 3529
DB Schema Version: 1645

I followed the vicidial manual and the email handling doc to set up email on my dialer. I set the email up with a google gsuite email account and allowed "less secure apps". I sent a few test emails to my google email account and they were received in vicidial.

I sent some test replies back from within the agent interface but they were never delivered. My hosting company claims there are no ports blocked on my server. How do I verify that?

I ran the email debug script from the email handling doc and everything appears to be ok.

/usr/share/astguiclient/AST_inbound_email_parser.pl --ssl-no-cert --debugX --force-check

Code: Select all
1 - anonredacted - anonredacted
Attempting to connect to IMAP server (imap.gmail.com)  -  1 - anonredacted - anonredacted

Started at Sat Nov 20 09:49:00 2021
Using Mail::IMAPClient version 3.43 on perl 5.026001
Read:   * OK Gimap ready for requests from ...
Sending: 1 LOGIN anon@redacted.tld [Redact: Count=1 Showcredentials=OFF]
Sent 43 bytes
Read:   * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
        1 OK anon@redacted.tld authenticated (Success)
Sending: 2 LIST "" INBOX
Sent 17 bytes
Read:   * LIST (\HasNoChildren) "/" "INBOX"
        2 OK Success
Sending: 3 LIST "" "INBOX/*"
Sent 21 bytes
Read:   3 OK Success
Sending: 4 LIST "" INBOX
Sent 17 bytes
Read:   * LIST (\HasNoChildren) "/" "INBOX"
        4 OK Success
Sending: 5 LIST "" INBOX
Sent 17 bytes
Read:   * LIST (\HasNoChildren) "/" "INBOX"
        5 OK Success
Sending: 6 STATUS INBOX (MESSAGES)
Sent 27 bytes
Read:   * STATUS "INBOX" (MESSAGES 5)
        6 OK Success
Sending: 7 SELECT INBOX
Sent 16 bytes
Read:   * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing)
        * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing \*)] Flags permitted.
        * OK [UIDVALIDITY 1] UIDs valid.
        * 5 EXISTS
        * 0 RECENT
        * OK [UIDNEXT 844] Predicted next UID.
        * OK [HIGHESTMODSEQ 550942]
        7 OK [READ-WRITE] INBOX selected. (Success)
Sending: 8 UID SEARCH ALL
Sent 18 bytes
Read:   * SEARCH 839 840 841 842 843
        8 OK SEARCH completed (Success)
Sending: 9 UID SEARCH unseen
Sent 21 bytes
Read:   * SEARCH
        9 OK SEARCH completed (Success)
Search successful but found no matching messages
Iteration # - found 0 new messages
Sending: 10 LOGOUT
Sent 11 bytes
Read:   * BYE LOGOUT Requested
        10 OK 73 good day (Success)
script execution time in seconds: 1     minutes: 0.0166666666666667
You have new mail in /var/spool/mail/root


How do I get the outbound emails working?

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sat Nov 20, 2021 10:54 am
by carpenox
type ss -ltnu and see what ports are open, you should see 25 open

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sat Nov 20, 2021 11:22 am
by bronson
carpenox wrote:type ss -ltnu and see what ports are open, you should see 25 open


Code: Select all
Netid           State            Recv-Q           Send-Q                                             Local Address:Port                      Peer Address:Port
udp             UNCONN           0                0                                                        0.0.0.0:42569                          0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:4520                           0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:4569                           0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:62241                          0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:5060                           0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:40569                          0.0.0.0:*
udp             UNCONN           0                0                                                xxx.xxx.xxx.xxx:123                            0.0.0.0:*
udp             UNCONN           0                0                                                      127.0.0.1:123                            0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:123                            0.0.0.0:*
udp             UNCONN           0                0                                                        0.0.0.0:41569                          0.0.0.0:*
udp             UNCONN           0                0                                [xxxx::xxx:xxxx:xxxx:xxxx]%eth0:123                               [::]:*
udp             UNCONN           0                0                           [xxxx:xxxx:x:xxxx:xxx:xxxx:xxx:xxxx]:123                               [::]:*
udp             UNCONN           0                0                          [xxxx:xxx:x:xxxx:xxxx:xxxx:xxxx:xxxx]:123                               [::]:*
udp             UNCONN           0                0                                                          [::1]:123                               [::]:*
udp             UNCONN           0                0                                                           [::]:123                               [::]:*
tcp             LISTEN           0                128                                                      0.0.0.0:42569                          0.0.0.0:*
tcp             LISTEN           0                128                                                      0.0.0.0:3306                           0.0.0.0:*
tcp             LISTEN           0                10                                                       0.0.0.0:5038                           0.0.0.0:*
tcp             LISTEN           0                128                                                      0.0.0.0:22                             0.0.0.0:*
tcp             LISTEN           0                10                                                       0.0.0.0:8088                           0.0.0.0:*
tcp             LISTEN           0                100                                                    127.0.0.1:25                             0.0.0.0:*
tcp             LISTEN           0                10                                                       0.0.0.0:8089                           0.0.0.0:*
tcp             LISTEN           0                128                                                      0.0.0.0:40569                          0.0.0.0:*
tcp             LISTEN           0                128                                                      0.0.0.0:4577                           0.0.0.0:*
tcp             LISTEN           0                128                                                      0.0.0.0:41569                          0.0.0.0:*
tcp             LISTEN           0                128                                                            *:80                                   *:*
tcp             LISTEN           0                128                                                            *:81                                   *:*
tcp             LISTEN           0                128                                                         [::]:22                                [::]:*
tcp             LISTEN           0                100                                                        [::1]:25                                [::]:*
tcp             LISTEN           0                128                                                            *:443                                  *:*
tcp             LISTEN           0                128                                                            *:446                                  *:*


thanks nox, there is my output.

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 21, 2021 6:51 am
by carpenox
OK so smtp is open, check if dovecot is running

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 21, 2021 10:30 am
by bronson
carpenox wrote:OK so smtp is open, check if dovecot is running


Code: Select all
xxxxxx:~ # service dovecot status
service: no such service dovecot

Re: inbound email works fine, outbound emails not delivering

PostPosted: Tue Nov 23, 2021 11:56 am
by bronson
here's what happens when I run postfix status

Code: Select all
vicibox10:~ # service postfix status
● postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-11-23 09:50:24 EST; 13min ago
    Process: 2502 ExecStartPre=/bin/echo Starting mail service (Postfix) (code=exited, status=0/SUCCESS)
    Process: 2503 ExecStartPre=/usr/lib/postfix/systemd/config_postfix (code=exited, status=0/SUCCESS)
    Process: 2504 ExecStartPre=/usr/lib/postfix/systemd/update_chroot (code=exited, status=0/SUCCESS)
    Process: 2505 ExecStartPre=/usr/lib/postfix/systemd/update_postmaps (code=exited, status=0/SUCCESS)
    Process: 2517 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
    Process: 2589 ExecStartPost=/usr/lib/postfix/systemd/wait_qmgr 60 (code=exited, status=0/SUCCESS)
    Process: 2592 ExecStartPost=/usr/lib/postfix/systemd/cond_slp register (code=exited, status=0/SUCCESS)
   Main PID: 2586 (master)
      Tasks: 6
     CGroup: /system.slice/postfix.service
             ├─ 2586 /usr/lib/postfix/bin//master -w
             ├─ 2587 pickup -l -t fifo -u
             ├─ 2588 qmgr -l -t fifo -u
             ├─ 2597 trivial-rewrite -n rewrite -t unix -u
             ├─14868 cleanup -z -t unix -u
             └─14872 local -t unix

Nov 23 10:03:01 vicibox10 postfix/local[14872]: 1BF3C9C0B: to=<root@localhost>, orig_to=<root>, relay=local, delay=0.06, delays=0.03/0.01/0/0.02, dsn=2.0.0, status=sent (>
Nov 23 10:03:01 vicibox10 postfix/qmgr[2588]: 1BF3C9C0B: removed
Nov 23 10:03:37 vicibox10 postfix/smtp[16794]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Nov 23 10:03:38 vicibox10 postfix/master[2586]: warning: process /usr/lib/postfix/bin//smtp pid 16794 exit status 1
Nov 23 10:03:38 vicibox10 postfix/master[2586]: warning: /usr/lib/postfix/bin//smtp: bad command startup -- throttling
Nov 23 10:04:01 vicibox10 postfix/pickup[2587]: 774B19C0B: uid=0 from=<root>
Nov 23 10:04:01 vicibox10 postfix/cleanup[14868]: 774B19C0B: message-id=<20211123150401.774B19C0B@localhost>
Nov 23 10:04:01 vicibox10 postfix/qmgr[2588]: 774B19C0B: from=<root@localhost>, size=890, nrcpt=1 (queue active)
Nov 23 10:04:01 vicibox10 postfix/local[14872]: 774B19C0B: to=<root@localhost>, orig_to=<root>, relay=local, delay=0.12, delays=0.09/0.01/0/0.01, dsn=2.0.0, status=sent (>
Nov 23 10:04:01 vicibox10 postfix/qmgr[2588]: 774B19C0B: removed
lines 1-30/30 (END)


what am I missing here?

Re: inbound email works fine, outbound emails not delivering

PostPosted: Fri Nov 26, 2021 7:46 pm
by carpenox
install dovecot

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sat Nov 27, 2021 6:07 am
by bronson
carpenox wrote:install dovecot


Ok, I installed dovecot and still the same issue. Inbound emails come into vicidial but nothing goes out. I log in as an agent, receive the inbound email, enter a message, hit reply. Everything looks fine from the agent side, but the emails never actually get sent.

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sat Nov 27, 2021 8:32 am
by carpenox
are you sure your host isnt blocking the ports?

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 28, 2021 2:17 am
by bronson
carpenox wrote:are you sure your host isnt blocking the ports?


yeah, you can see above

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 28, 2021 2:27 am
by bronson
something is happening now. A test email I replied to on Tuesday was finally received yesterday (Saturday) and it was sent to my spam. But I tested another email now and I still haven't received it.

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 28, 2021 3:51 pm
by carpenox
Sounds like your email provider maybe delaying it

Re: inbound email works fine, outbound emails not delivering

PostPosted: Sun Nov 28, 2021 10:41 pm
by bronson
carpenox wrote:Sounds like your email provider maybe delaying it


I'm using a Google Workspace email account.

Re: inbound email works fine, outbound emails not delivering

PostPosted: Fri Dec 17, 2021 10:33 am
by callcentertech
They filter out most spam emails. You need to set your spam settings in workspace acc. Or me be try sending out emails to regular smtp and see if they deliver..

bronson wrote:
carpenox wrote:Sounds like your email provider maybe delaying it


I'm using a Google Workspace email account.