Afox
September 16, 2023, 1:58pm
1
Hello,
how do I pipe mails from an external Postfix server into Zammad?
Thanks and best regards
This documentation page shows how you can throw emails against StdIn into Zammad:
https://admin-docs.zammad.org/en/latest/channels/email/advanced/fetchmail.html
You’ll have to adapt this to your situation.
Personally I would say: Don’t do it. Especially with a network layer being between your MTA and Zammad, this might cause all sort of issues (like loosing emails…) if you have network connectivity issues.
Please consider using a proper mailbox.
Afox
October 4, 2023, 1:32pm
3
Thanks, I saw that. I was hoping for a more detailed instruction towards Postfix.
Hi
Is it possible to get a way forward on this item
I have read through
opened 09:33AM - 27 Feb 17 UTC
closed 10:37AM - 23 Feb 18 UTC
enhancement
channel
proposal
ticket
I was thinking that it would be really nice if Zammad could behave as an SMTP se… rver (MTA) with the help of for example the [Ruby mini smtp server](https://github.com/aarongough/mini-smtp-server). The benfit would be that one can configure his main MTA (postfix, sendmail, etc.) to just relay mail to Zammad. Zammad could then function as the endpoint for the email.
This has advantages over using an IMAP server in between:
* Less moving parts, simple delivery directly to Zammad. No need to maintain IMAP boxes which are only used as an intermediary.
* MTA can better respond to Zammad downtime. For example bounce message after 2 days with an undelivered message if it can't be relayed to Zammad when Zammad is down. If the mail is sitting in an IMAP spool for a couple of days the MTA will have already communicated to the sending MTA that delivery was successful while in fact it was not.
I was thinking that in the "Email Inbound" selection box the option SMTP could be selected and a port could be provided on which Zammad would then start listening.
What do you guys think of such an idea? (I might be interested in implementing this feature so I would like some feedback).
zammad:develop
← MaartenR:smtp-relay
opened 03:10PM - 26 Apr 17 UTC
As mentioned in #806 we (@ServicePlanet) like to see a feature which adds the po… ssibility of creating inbound smtp email channels. Zammad would then listen on a port for smtp connections and incoming emails would be processed through this channel. As mentioned in the issue the idea is that this feature allows a frontend MTA to relay mails directly to Zammad.
This pull request contains the current implementation of this feature and i was wondering whether you guys would consider merging this, and if not, if there are any changes that can be made to make you reconsider.
Currently it works by creating an email account and selecting SMTP as the type. After the account is created Zammad starts an smtp server that listens for incoming connections on the configured port. The host and user are still configured, because they seem to function like channel identifiers. The password has become optional because it is not used here. I feel that ideally fields would be optional or mandatory depending on the adapter type that was selected, but currently that is not the case. What do you think?
Any kind of feedback is certainly appreciated. Information about the problem this is supposed to solve can be found in issue #806.
opened 06:56PM - 20 Jul 17 UTC
closed 05:37PM - 31 May 21 UTC
documentation
Has anyone gotten this to work yet with Exchange email? I see there's a pull re… quest (https://github.com/zammad/zammad/pull/999) to integrate SMTP along with some documentation on using Fetchmail to pipe the emails (https://docs.zammad.org/en/latest/channel-fetchmail.html), but I'm not really experienced enough with Fetchmail to do this with an Exchange server. Any documentation we can use to set this up with Zammad?
I propose that there is still a use case for transporting mail directly from other SMTP servers and avoiding the IMAP/POP enabled mailboxes. IMAP scraping means caching mail in a mailbox.
Would still want to pipe mail from Postfix to Zammad via say API
Thanks in advance
You received all information on available options. Everything beside that is not possible as of now.
Technically API might be possible.