kamax-matrix / matrix-appservice-email

Matrix <--> E-mail Bridge
GNU Affero General Public License v3.0
39 stars 11 forks source link

SMTP Postfix MTA rejects mails #26

Closed vmario89 closed 5 years ago

vmario89 commented 5 years ago

Hey, i am trying to test the email bridge and made it working 50%. Inviting a person who is not registered works. The person gets an email and i am able to send messages to him. I am also able to manage the subscriptions. But repyling from Mail to Matrix does not work. My SMTP rejects it.

How does this thing work in general? As far as i understand it, matrix-appservice-email should create a mailbox for the specific user matrix-appservice-email+%KEY%@domain.tld to receive mails from external, right? The SMTP server ignored it because it does not exist:

warning: 19.15.227.212.combined.njabl.org: RBL lookup error: Host or domain name not found. Name service error for name=19.15.227.212.combined.njabl.org type=A: Host not found, try again Mar 5 17:25:48 h2606131 postfix/smtpd[7893]: NOQUEUE: reject: RCPT from [212.227.15.19]: 550 5.1.1 matrix-appservice-email+THEKEY@domain.tld: Recipient address rejected: User unknown in virtual mailbox table; from=abc@domain2.tld to=matrix-appservice-email+THEKEY@domain.tld proto=ESMTP helo=

grafik

I know that this should work like some virtual mailbox lookup because i understand that it would make no sense to create a real mailbox for each request.

Do you have some hint how to configure MTA accordingly? I am using Postfix. It provides different options on how to handle unknown mails: redirect them to another mailbox, bounce them, ignore them. But none of these 3 options makes sense on how to deal with virtual.

kind regards and thanks for this great module! It definetely will help to make longterm bindings from mail-only yet users to Matrix users :-)

vmario89 commented 5 years ago

hey, close this. i was able to solve it. i had a problem with the delimiter in the main.cf in postfix, and additionally some mistake for accepting mails. and: i created an special mailbox named matrix-appservice-email@domain.tld for this use case. now ping-pong chat works fluently!