Vicidial Outbound Email Error "Sender address rejected"
Posted: Mon Dec 05, 2022 4:09 am
I can receive emails in my Vicidial dialer but outbound email replies are not getting sent out. Inside Vicidial I do get a "success" notification but the email is not actually getting sent.
My server specs:
Vicibox10 Express-Install
Version: 2.14b0.5
SVN Version: 3612
DB Schema Version: 1662
DB Schema Update Date: 2022-07-22 15:35:31
Install Date: 2022-07-22
*Vicidial whitelist firewall is enabled if that makes a difference.
I built a private email server using iRedMail and I am able to send and receive emails via the web using RoundCube and also through my Thunderbird email client so I am confident the issue is not on the email server side.
I have followed all the steps in the Vicidial Email User Manual doc here http://vicidial.org/docs/Email_user_manual.txt
Also followed some additional steps I found digging around the forum.
When I run the below script to troubleshoot, everything connects fine with no issues
Here is the output of the inbound parser debug:
When I send an outbound email reply from the vicidial agent side I see the error message in journalctl "Sender address rejected: need fully-qualified address (in reply to RCPT TO command).
Here is the postfix output below:
Also, there is no block on my port 25 from my host
So I believe I have everything set up as it should. I'm not sure what is blocking me from sending outbound emails.
Any ideas? I've been able to resolve many of the issues on my own by searching the forums and other sites but this last piece has me stuck.
Hoping someone can help or at least point me in the right direction to solve this.
Thanks!
My server specs:
Vicibox10 Express-Install
Version: 2.14b0.5
SVN Version: 3612
DB Schema Version: 1662
DB Schema Update Date: 2022-07-22 15:35:31
Install Date: 2022-07-22
*Vicidial whitelist firewall is enabled if that makes a difference.
I built a private email server using iRedMail and I am able to send and receive emails via the web using RoundCube and also through my Thunderbird email client so I am confident the issue is not on the email server side.
I have followed all the steps in the Vicidial Email User Manual doc here http://vicidial.org/docs/Email_user_manual.txt
- Installed PERL modules (CPAN) (some failed, IO::Socket::SSL, HTML::FormatText, MIME::Decoder, MIME::Base64)
- Allowed emails in System Settings
- Allowed emails in Campaign Settings
- Allowed emails in Users Settings
- Configured email accounts using IMAP
- Created email group
- Allowed email group in the campaign
- Verified "E" keepalive is enabled
- Added /usr/share/astguiclient/AST_inbound_email_parser.pl in crontab
Also followed some additional steps I found digging around the forum.
- Setup Mail Relay in my main.cf file
- Code: Select all
relayhost = [mail.myiredmailserver.com]:587
############################################################
# SASL stuff
############################################################
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = lmdb:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
smtpd_sasl_auth_enable = yes
# cyrus : smtpd_sasl_type = cyrus
# smtpd_sasl_path = smtpd
# dovecot : smtpd_sasl_type = dovecot
# smtpd_sasl_path = private/auth
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
############################################################
# TLS stuff
############################################################
#tls_append_default_CA = no
relay_clientcerts =
#tls_random_source = dev:/dev/urandom
smtp_use_tls = yes
#smtp_tls_loglevel = 0
smtp_enforce_tls = no
smtp_tls_CAfile = /etc/ssl/ca-bundle.pem
smtp_tls_CApath =
smtp_tls_cert_file =
smtp_tls_key_file =
#smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy
#smtp_tls_session_cache_timeout = 3600s
smtp_tls_session_cache_database =
- Addded my login credentials to /etc/postfix/sasl_passwd and mapped it
- Code: Select all
# sasl_passwd
# Syntax:
# domain username:password
# Example:
# foo.com username:password
# See /usr/share/doc/packages/postfix/README_FILES/SASL_README
# for more details
[mail.myiredmailserver.com]:587 me@mybidnezzemail.com:MYEM@!LP@$$W0RD
- Edited the iRedAPD configuration file on my iRedMail server:
- Code: Select all
ALLOWED_LOGIN_MISMATCH_SENDERS = ['me@mybidnezzemail.com']
When I run the below script to troubleshoot, everything connects fine with no issues
- Code: Select all
vicibox10:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX
Here is the output of the inbound parser debug:
- Code: Select all
1 - me - Me
Attempting to connect to IMAP server (mail.myiredmailserver.com) - 1 - me - Me
Started at Mon Dec 5 02:35:35 2022
Using Mail::IMAPClient version 3.43 on perl 5.026001
Connecting with IO::Socket::SSL PeerAddr mail.myiredmailserver.com PeerPort 993 Proto tcp Timeout 600 Debug 1
Connected to mail.myiredmailserver.com
Read: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
Sending: 1 LOGIN me@mybidnezzemail.com [Redact: Count=1 Showcredentials=OFF]
Sent 51 bytes
Read: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE QUOTA ACL RIGHTS=texk] Logged in
Sending: 2 LIST "" INBOX
Sent 17 bytes
Read: * LIST (\HasNoChildren) "/" INBOX
2 OK List completed (0.001 + 0.000 + 0.001 secs).
Sending: 3 LIST "" "INBOX/*"
Sent 21 bytes
Read: 3 OK List completed (0.001 + 0.000 secs).
Sending: 4 LIST "" INBOX
Sent 17 bytes
Read: * LIST (\HasNoChildren) "/" INBOX
4 OK List completed (0.001 + 0.000 secs).
Sending: 5 LIST "" INBOX
Sent 17 bytes
Read: * LIST (\HasNoChildren) "/" INBOX
5 OK List completed (0.001 + 0.000 secs).
Sending: 6 STATUS INBOX (MESSAGES)
Sent 27 bytes
Read: * STATUS INBOX (MESSAGES 7)
6 OK Status completed (0.001 + 0.000 secs).
Sending: 7 SELECT INBOX
Sent 16 bytes
Read: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 7 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1669965272] UIDs valid
* OK [UIDNEXT 11] Predicted next UID
* OK [HIGHESTMODSEQ 25] Highest
7 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
Sending: 8 UID SEARCH ALL
Sent 18 bytes
Read: * SEARCH 4 5 6 7 8 9 10
8 OK Search completed (0.001 + 0.000 secs).
Sending: 9 UID SEARCH unseen
Sent 21 bytes
Read: * SEARCH
9 OK Search completed (0.001 + 0.000 secs).
Search successful but found no matching messages
Iteration # - found 0 new messages
Sending: 10 LOGOUT
Sent 11 bytes
Read: * BYE Logging out
10 OK Logout completed (0.001 + 0.000 secs).
script execution time in seconds: 1 minutes: 0.0166666666666667
When I send an outbound email reply from the vicidial agent side I see the error message in journalctl "Sender address rejected: need fully-qualified address (in reply to RCPT TO command).
Here is the postfix output below:
- Code: Select all
Dec 05 02:06:34 vicibox10 postfix/smtp[4506]: 714EAA57A: to=<me@mytestemailaddress.com>, relay=mail.myiredmailserver.com[123.456.789.10]:587, delay=0.83, delays=0.01/0.02/0.75/0.05, dsn=5.5.2, status=bounced (host mail.myiredmailserver.com[123.456.789.10] said: 504 5.5.2 <wwwrun@localhost>: Sender address rejected: need fully-qualified address (in reply to RCPT TO command))
Dec 05 02:06:34 vicibox10 postfix/cleanup[4504]: 4AD4BA57B: message-id=<20221205070634.4AD4BA57B@localhost>
Dec 05 02:06:34 vicibox10 postfix/bounce[4695]: 714EAA57A: sender non-delivery notification: 4AD4BA57B
Dec 05 02:06:34 vicibox10 postfix/qmgr[29532]: 4AD4BA57B: from=<>, size=2738, nrcpt=1 (queue active)
Dec 05 02:06:34 vicibox10 postfix/qmgr[29532]: 714EAA57A: removed
Dec 05 02:06:34 vicibox10 postfix/local[4696]: 4AD4BA57B: to=<root@localhost>, orig_to=<wwwrun@localhost>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 05 02:06:34 vicibox10 postfix/qmgr[29532]: 4AD4BA57B: removed
Also, there is no block on my port 25 from my host
- Code: Select all
vicibox10:~ # telnet portquiz.net 25
Trying 35.180.139.74...
Connected to portquiz.net.
So I believe I have everything set up as it should. I'm not sure what is blocking me from sending outbound emails.
Any ideas? I've been able to resolve many of the issues on my own by searching the forums and other sites but this last piece has me stuck.
Hoping someone can help or at least point me in the right direction to solve this.
Thanks!