mcom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Replies
  • mcom
    Participant
    Up
    0
    Down
    I also noticed that voicemail emails are sent using MAIL FROM:  asterisk@ourdomain.com when they should be using the same pbx@ourdomain.com address defined in System Settings -> Email Settings. I created another alias and was able to work around the issue.
    0
    mcom
    Participant
    Up
    0
    Down
    I was able to receive the email since I added the alias apache@ourdomain.com  = pbx@ourdomain.com. Here is the VitalPBX config and send log as well as a snippet from our mail server. You can see that the “Username” field is being used for email authentication but the “From Address” is not being used as the SMTP “MAIL FROM” parameter when the message is sent.

    VitalPBX Config and Send Log

    Server: Use External Mail Server
    From Address: pbx@ourdomain.com
    Provider: Other
    SMTP Server: mail.ourdomain.com
    Port: 587
    Origin: ourdomain.com
    TLS Authentication: Yes
    Username: pbx@ourdomain.com
    Password: •••••••••••••

    <strong>Email Log from VitalPBX</strong>
    Jul 14 16:00:59 pbx postfix/pickup[596]: A6F0331AB36A: uid=48 from=
    Jul 14 16:00:59 pbx postfix/cleanup[1514]: A6F0331AB36A: message-id=<20210714200059.A6F0331AB36A@pbx.ourdomain.com>
    Jul 14 16:00:59 pbx postfix/qmgr[597]: A6F0331AB36A: from=<apache@ourdomain.com>, size=419, nrcpt=1 (queue active)
    Jul 14 16:00:59 pbx postfix/smtp[1516]: A6F0331AB36A: to=<test@ourdomain.com>, relay=mail.ourdomain.com[X.X.X.250]:587, delay=0.17, delays=0.04/0.05/0.07/0.01, dsn=2.6.0, status=sent (250 2.6.0 Ok, message saved >)
    Jul 14 16:00:59 pbx postfix/qmgr[597]: A6F0331AB36A: removed

     

    Email Server Log

    Wed 2021-07-14 16:00:34.749: 05: Session 317043; child 0002
    Wed 2021-07-14 16:00:34.749: 05: Accepting SMTP connection from X.X.X.245:48392 to X.X.X.250:587
    Wed 2021-07-14 16:00:34.750: 03: --> 220 mailserver.ourdomain.com ESMTP MSA Wed, 14 Jul 2021 16:00:34 -0400
    Wed 2021-07-14 16:00:34.750: 02: <-- EHLO pbx.ourdomain.com Wed 2021-07-14 16:00:34.750: 03: --> 250-mailserver.ourdomain.com Hello pbx.ourdomain.com [X.X.X.245], pleased to meet you
    Wed 2021-07-14 16:00:34.750: 03: --> 250-8BITMIME
    Wed 2021-07-14 16:00:34.750: 03: --> 250-ENHANCEDSTATUSCODES
    Wed 2021-07-14 16:00:34.750: 03: --> 250-STARTTLS
    Wed 2021-07-14 16:00:34.750: 03: --> 250 SIZE
    Wed 2021-07-14 16:00:34.750: 02: <-- STARTTLS Wed 2021-07-14 16:00:34.750: 03: --> 220 2.7.0 Ready to start TLS
    Wed 2021-07-14 16:00:34.810: 01: SSL negotiation successful (TLS 1.2, 521 bit key exchange, 256 bit encryption)
    Wed 2021-07-14 16:00:34.811: 02: <-- EHLO pbx.ourdomain.com Wed 2021-07-14 16:00:34.811: 03: --> 250-mailserver.ourdomain.com Hello pbx.ourdomain.com [X.X.X.245], pleased to meet you
    Wed 2021-07-14 16:00:34.811: 03: --> 250-AUTH LOGIN PLAIN
    Wed 2021-07-14 16:00:34.811: 03: --> 250-8BITMIME
    Wed 2021-07-14 16:00:34.811: 03: --> 250-ENHANCEDSTATUSCODES
    Wed 2021-07-14 16:00:34.811: 03: --> 250 SIZE
    Wed 2021-07-14 16:00:34.812: 02: <-- AUTH LOGIN Wed 2021-07-14 16:00:34.812: 03: --> 334 VXNlcm5mjjUiS6
    Wed 2021-07-14 16:00:34.812: 02: <-- dnBieEBtaWNyb2Ndj#jljsf9uj3E Wed 2021-07-14 16:00:34.812: 03: --> 334 UGFzmddh8EuIW
    Wed 2021-07-14 16:00:34.812: 02: <-- ****** Wed 2021-07-14 16:00:34.812: 01: Authenticating pbx@ourdomain.com...    <–THIS IS CORRECT Wed 2021-07-14 16:00:34.815: 01: Authenticated as pbx@ourdomain.com Wed 2021-07-14 16:00:34.815: 03: --> 235 2.7.0 Authentication successful
    Wed 2021-07-14 16:00:34.815: 02: <-- MAIL FROM:<apache@ourdomain.com> SIZE=419   <— THIS IS NOT CORRECT
    Wed 2021-07-14 16:00:34.815: 01: apache@ourdomain.com is an alias for pbx@ourdomain.com
    Wed 2021-07-14 16:00:34.815: 03: --> 250 2.1.0 Sender OK
    Wed 2021-07-14 16:00:34.816: 02: <-- RCPT TO:<test@ourdomain.com>
    Wed 2021-07-14 16:00:34.816: 01: test@ourdomain.com is an alias for test@ourdomain.com
    Wed 2021-07-14 16:00:34.819: 03: --> 250 2.1.5 Recipient OK
    Wed 2021-07-14 16:00:34.819: 02: <-- DATA Wed 2021-07-14 16:00:34.820: 01: Creating temp file (SMTP): ..\queues\temp\md50000003453.tmp Wed 2021-07-14 16:00:34.820: 03: --> 354 Enter mail, end with .
    Wed 2021-07-14 16:00:34.820: 01: Message size: 419 bytes
    Wed 2021-07-14 16:00:34.824: 01: Message creation successful: ..\queues\inbound\md50002582012.msg
    Wed 2021-07-14 16:00:34.824: 03: --> 250 2.6.0 Ok, message saved >
    Wed 2021-07-14 16:00:34.825: 02: <-- QUIT Wed 2021-07-14 16:00:34.825: 03: --> 221 2.0.0 See ya in cyberspace
    Wed 2021-07-14 16:00:34.825: 01: SMTP session successful (Bytes in/out: 1842/4570)

     

    • This reply was modified 3 months, 1 week ago by mcom.
    0
    mcom
    Participant
    Up
    0
    Down
    I can confirm that this problem still exists in VitalPBX 3.0.9-5. I added a temporary alias to get things working. The “From Address” in the “System Settings” -> “Email Settings” entry is not being used.
    • This reply was modified 3 months, 1 week ago by mcom.
    0
Viewing 3 replies - 1 through 3 (of 3 total)