inbound email works fine, outbound emails not delivering

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

inbound email works fine, outbound emails not delivering

Postby bronson » Sat Nov 20, 2021 9:56 am

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?
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby carpenox » Sat Nov 20, 2021 10:54 am

type ss -ltnu and see what ports are open, you should see 25 open
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sat Nov 20, 2021 11:22 am

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.
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby carpenox » Sun Nov 21, 2021 6:51 am

OK so smtp is open, check if dovecot is running
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sun Nov 21, 2021 10:30 am

carpenox wrote:OK so smtp is open, check if dovecot is running


Code: Select all
xxxxxx:~ # service dovecot status
service: no such service dovecot
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Tue Nov 23, 2021 11:56 am

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?
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby carpenox » Fri Nov 26, 2021 7:46 pm

install dovecot
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sat Nov 27, 2021 6:07 am

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.
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby carpenox » Sat Nov 27, 2021 8:32 am

are you sure your host isnt blocking the ports?
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sun Nov 28, 2021 2:17 am

carpenox wrote:are you sure your host isnt blocking the ports?


yeah, you can see above
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sun Nov 28, 2021 2:27 am

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.
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby carpenox » Sun Nov 28, 2021 3:51 pm

Sounds like your email provider maybe delaying it
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: inbound email works fine, outbound emails not delivering

Postby bronson » Sun Nov 28, 2021 10:41 pm

carpenox wrote:Sounds like your email provider maybe delaying it


I'm using a Google Workspace email account.
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: inbound email works fine, outbound emails not delivering

Postby callcentertech » Fri Dec 17, 2021 10:33 am

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.
Email: kaushal@callcentertech.net, Phone/WhatsApp: +1 (636)-556-0022
Web: https://www.callcentertech.net, Skype: live:52956f35f3283f55
Fully Automated VICIdial Installer https://www.callcentertech.net/vicifast/
callcentertech
 
Posts: 48
Joined: Sat Jul 17, 2021 2:01 pm
Location: Ahmedabad, India


Return to Support

Who is online

Users browsing this forum: No registered users and 73 guests