Skip to content

sendmail does not work / doesn't use FROM parameter #9385

@DeveloperOl

Description

@DeveloperOl
  • Gitea version (or commit ref): 1.10.1
  • Git version: 2.11.0
  • Operating system: Raspbian / Debian 9 (Stretch)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I tried to setup email notifications with postfix sendmail using the following config:

ENABLED = true
FROM = My Gitea <noreply@gitea.[mydomain].io>
MAILER_TYPE = sendmail

[mydomain] is replaced with a valid domain.

But when I send a test mail postfix logs this:

Dec 17 14:44:19 RaspberryPi postfix/cleanup[3590]: 6246C1006F3: message-id=<20191217134419.6246C1006F3@mail.[mydomain].io>
Dec 17 14:44:19 RaspberryPi postfix/qmgr[3499]: 6246C1006F3: from=<git@[email protected]>, size=899, nrcpt=1 (queue active)
Dec 17 14:44:19 RaspberryPi postfix/smtp[3592]: 6246C1006F3: to=<[anonymized]@gmail.com>, relay=gmail-smtp-in.l.google.com[108.177.126.27]:25, delay=0.57, delays=0.1/0.03/0.43/0.01, dsn=5.1.7, status=bounced (host gmail-smtp-in.l.google.com[108.177.126.27] said: 553-5.1.7 The sender address <git@[email protected]> is not a valid 553 5.1.7 RFC-5321 address. v25si7275410edq.184 - gsmtp (in reply to MAIL FROM command))
Dec 17 14:44:19 RaspberryPi postfix/cleanup[3590]: EF6DA100746: message-id=<20191217134419.EF6DA100746@mail.[mydomain].io>
Dec 17 14:44:20 RaspberryPi postfix/bounce[3593]: 6246C1006F3: sender non-delivery notification: EF6DA100746
Dec 17 14:44:20 RaspberryPi postfix/qmgr[3499]: EF6DA100746: from=<>, size=3248, nrcpt=1 (queue active)
Dec 17 14:44:20 RaspberryPi postfix/qmgr[3499]: 6246C1006F3: removed
Dec 17 14:44:20 RaspberryPi postfix/smtp[3592]: EF6DA100746: to=<git@[email protected]>, relay=none, delay=0.13, delays=0.03/0.01/0.1/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=raspberrypi.com type=AAAA: Host not found)
Dec 17 14:44:20 RaspberryPi postfix/qmgr[3499]: EF6DA100746: removed

and I don't receive an email. I can see that my configured FROM = My Gitea <noreply@gitea.[mydomain].io> is not beeing used and therefore the email gets rejected by gmail.
The sendmail works fine for my nextcloud setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions