Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipient is not configured error when the config clearly is configured #130

Open
sdooweloc opened this issue Aug 15, 2024 · 0 comments
Open

Comments

@sdooweloc
Copy link

I am getting errors whenever I try to send to any of my configured emails stating Recipient is not configured even though I can clearly see the recipient is configured in my file. I have tried using different items listed in the config, tried using fully defined emails, I even tried defining one of the lines as being the email "*" but still receive the error about not being configured. What could possibly be going on here?

For example:
Sending Email through Curl:

curl -vvv smtps://mailrise.mydomain.tld -u AzureDiamond:hunter2 --ssl-reqd --mail-from 'TrueNAS@mydomain.tld' --mail-rcpt 'crowdsec@mailrise.xyz' --upload-file "Desktop\email.txt"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host mailrise.eloc.wtf:465 was resolved.
* IPv6: (none)
* IPv4: 172.16.92.60
*   Trying 172.16.92.60:465...
* Connected to mailrise.mydomain.tld (172.16.92.60) port 465
* schannel: disabled automatic use of client certificate
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< 220 b5b79fc9e34b Mailrise 0.0.post1.dev1+gf7543c3
> EHLO email.txt
< 250-b5b79fc9e34b
< 250-SIZE 33554432
< 250-8BITMIME
< 250-SMTPUTF8
< 250-AUTH LOGIN PLAIN
< 250 HELP
> AUTH PLAIN
< 334
> AEF6dXJlRGlhbW9uZABodW50ZXIy
< 235 2.7.0 Authentication successful
> MAIL FROM:<'TrueNAS@mydomain.tld'> SIZE=207
< 250 OK
> RCPT TO:<'crowdsec@mailrise.xyz'>
< 250 OK
> DATA
< 354 End data with <CR><LF>.<CR><LF>
} [210 bytes data]
* upload completely sent off: 210 bytes
< 250 OK
101   207    0     0  101   210      0   1106 --:--:-- --:--:-- --:--:--  1129
* Connection #0 to host mailrise.mydomain.tld left intact

Mailrise logs:

[2024-08-15 17:22:00] WARNING:mail.log:auth_required == True but auth_require_tls == False
[2024-08-15 17:22:00] INFO:mail.log:Available AUTH mechanisms: LOGIN(builtin) PLAIN(builtin)
/home/mailrise/.local/lib/python3.11/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities!
  warn("Requiring AUTH while not requiring TLS "
[2024-08-15 17:22:00] INFO:mail.log:Peer: ('172.18.0.2', 52308)
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) handling connection
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'220 b5b79fc9e34b Mailrise 0.0.post1.dev1+gf7543c3'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b'EHLO email.txt\r\n'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b'EHLO email.txt'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250-b5b79fc9e34b'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250-SIZE 33554432'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250-8BITMIME'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250-SMTPUTF8'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250-AUTH LOGIN PLAIN'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250 HELP'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b'AUTH PLAIN\r\n'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b'AUTH PLAIN'
[2024-08-15 17:22:00] DEBUG:mail.log:Using builtin auth_ hook for 'PLAIN'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << challenge: b'334 '
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'334 '
[2024-08-15 17:22:00] DEBUG:mail.log:auth_PLAIN returned AuthResult(success=True, handled=True, message=None, auth_data=...)
[2024-08-15 17:22:00] WARNING:mail.log:Session.login_data is deprecated and will be removed in version 2.0
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'235 2.7.0 Authentication successful'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b"MAIL FROM:<'[email protected]'> SIZE=207\r\n"
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b"MAIL FROM:<'[email protected]'> SIZE=207"
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) sender: '[email protected]'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250 OK'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b"RCPT TO:<'[email protected]'>\r\n"
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b"RCPT TO:<'[email protected]'>"
[2024-08-15 17:22:00] INFO:mailrise.skeleton:Added recipient: '[email protected]'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) recip: '[email protected]'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250 OK'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b'DATA\r\n'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b'DATA'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'354 End data with <CR><LF>.<CR><LF>'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'From: John Smith <[email protected]>\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'To: Joe Smith <[email protected]>\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'Subject: an example.com example email\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'Date: Mon, 7 Nov 2016 08:45:16\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'Dear Joe,\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'Welcome to this example email. What a lovely day.\r\n'
[2024-08-15 17:22:00] DEBUG:mail.log:DATA readline: b'.\r\n'
[2024-08-15 17:22:00] INFO:mailrise.skeleton:Accepted email, subject: an example.com example email
[2024-08-15 17:22:00] ERROR:mailrise.skeleton:Recipient is not configured: '[email protected]'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'250 OK'
[2024-08-15 17:22:00] DEBUG:mail.log:_handle_client readline: b'QUIT\r\n'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) >> b'QUIT'
[2024-08-15 17:22:00] DEBUG:mail.log:('172.18.0.2', 52308) << b'221 Bye'
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) connection lost
[2024-08-15 17:22:00] INFO:mail.log:('172.18.0.2', 52308) Connection lost during _handle_client()

mailrise.conf file:

configs:
  "[email protected]":
    urls:
      - discord://ID/Key?avatar_url=https://github.com/walkxcode/dashboard-icons/blob/main/png/truenas.png?raw=true
  crowdsec:
    urls:
      - discord://ID/Key?avatar_url=https://github.com/walkxcode/dashboard-icons/blob/main/png/crowdsec.png?raw=true
  [email protected]:
    urls:
      - discord://ID/key
  gitea*@*:
    urls:
      - discord://ID/Key?avatar_url=https://github.com/walkxcode/dashboard-icons/blob/main/png/gitea.png?raw=true
smtp:
  auth:
    basic:
      username: password
      AzureDiamond: hunter2

Docker-Compose.yml

services:
  mailrise:
    image: yoryan/mailrise
    container_name: mailrise
    restart: always
    networks:
      - proxy
    volumes:
      - /mnt/docker/mailrise/mailrise.conf:/etc/mailrise.conf:ro
    labels:
      traefik.enable: "true"
      traefik.tcp.routers.mailrise.rule: "HostSNI(`*`)"
      traefik.tcp.routers.mailrise.tls: "true"
      traefik.tcp.routers.mailrise.tls.certresolver: "cloudflare"
      traefik.tcp.routers.mailrise.tls.domains[0].main: "mailrise.eloc.wtf"
      traefik.tcp.routers.mailrise.tls.domains[0].sans: ""
      traefik.tcp.routers.mailrise.entrypoints: "mailsecure"
      traefik.docker.network: "proxy"
    command: -vv /etc/mailrise.conf

networks:
  proxy:
    external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant