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

Send all mails via sendmail - allow SMTP connection with no user/password (without auth) #224

Closed
monotek opened this issue Oct 19, 2016 · 27 comments
Assignees
Milestone

Comments

@monotek
Copy link
Member

monotek commented Oct 19, 2016

I want to add an email address to a group but have to add an email account first.
Why do i need to enter a password there? I like to send all mail via sendmail.
Not only notifications.

@thorsteneckel
Copy link
Contributor

Hi @monotek could you please provide further information for this? I don't get it yet. A screenshot would be great. Thanks!

@monotek
Copy link
Member Author

monotek commented Oct 20, 2016

I want to configure outbound e-mail adresses to attach them to my groups.
At the moment i only can configure e-mails for inbound and these need a password.
System notifications can be send by sendmail. I also want to send outbound mails to customer via sendmail.

So my idea was to add sendmail option to the inbound menu. But makes no real sense if it keeps the name inbound. Maybe renaming "Email Inbound" to "Email Inbound/Outbound" would be an option or creation of an "Email Otbound" menu.

@monotek monotek changed the title Create E-Mail channel without password Send all mails via sendmail Oct 29, 2016
@martini martini self-assigned this Oct 29, 2016
@martini
Copy link
Collaborator

martini commented Oct 29, 2016

@monotek Is there a reason because you really want to use sendmail/postfix for sending emails to customers? Today many email restrictions out there (spf for example) wich only accept emails from certain mail servers, otherwise your emails will get rejected.

@monotek
Copy link
Member Author

monotek commented Oct 29, 2016

All our servers are configured to send mails to our relayhost wich is our real mailserver, which also does all the spf magic and so on. The advantage which i see is, that every server (also Zammad) has there own mailqueue which in my experience is much less error prone than letting some external programm or lib handle sending mails.

If there is a problem with the mailserver of any kind all agents can just send mails without getting bothered from error messages in the frontend. Mails are going to the local mailqueue. If mailserver is accessible again mails are devlivered to customers transparently.

@rkaldung
Copy link
Contributor

@monotek Usually sendmail can be replaced by smtp to 127.0.0.1:25 This shouldn't break your relay config.

@monotek
Copy link
Member Author

monotek commented Nov 16, 2016

Thanks for the hint.

I guess username and password would still be needed?

@rkaldung
Copy link
Contributor

My postfix default config (EL6/EL7) always accepts e-mails from localhost/127.0.0.1 without authentication.

@monotek
Copy link
Member Author

monotek commented Nov 16, 2016

But the zammad dialog forces you to enter some...

@rkaldung
Copy link
Contributor

@martini Really? Especially in MS Exchange environments relay permission is given on a IP address base. Authentication credentials should be optional.

@martini martini changed the title Send all mails via sendmail Send all mails via sendmail - allow SMTP connection with no user/password (without auth) Nov 16, 2016
@martini martini added this to the v1.0.2 milestone Nov 16, 2016
@martini martini added the bug label Nov 16, 2016
@martini
Copy link
Collaborator

martini commented Nov 16, 2016

A good idea to set user/password optional!  😜

8004e44

Issue to close then?

@monotek
Copy link
Member Author

monotek commented Nov 16, 2016

Ill test it later...
Will close if it works...

@monotek
Copy link
Member Author

monotek commented Nov 16, 2016

I just tested it in 1.2.0 via the new Ubuntu 16.04 docker image (docker run -ti -p 80:80 monotek/zammad)
I still have to enter username and password.
Whats also a bit weird is that i have to fill all fields before i'm allowed to open the expert settings.

@monotek
Copy link
Member Author

monotek commented Nov 17, 2016

Are you sure you changed this for the mail channel?
Thats what i'm talking about.
I wan't to send all mails via SENDMAIL/SMTP without configuring POP3/IMAP.
Its not about the setting for notifications.

@martini
Copy link
Collaborator

martini commented Nov 17, 2016

@monotek sorry, I just was talking about sending mails via SMTP without user/password (before user/password was required).

@martini martini modified the milestones: v1.0.3, v1.0.2 Dec 14, 2016
@scroogie
Copy link

Any news on this? I think its a pretty common scenario that you do not use IMAP/POP3 for incoming mails, but direct delivery, for ticket systems.

@martini
Copy link
Collaborator

martini commented Dec 22, 2016

@scroogie JFI: For receiving without IMAP/POP3 you can use this https://docs.zammad.org/en/latest/channel-fetchmail.html

@monotek
Copy link
Member Author

monotek commented Dec 22, 2016

Other ways which use pipe (postfix alias can also pipe to a script for example) should work likewise...

@scroogie
Copy link

Yes, I tried this, as its the normal configuration for us, but as far as I understood your configuration interface, it's not possible to assign it to anyone then, because you need to enter a Useraccount, Login, Password etc. on the page.

@martini martini modified the milestones: 1.0.3, 1.0.4 Jan 16, 2017
@symptog
Copy link

symptog commented Sep 11, 2017

Any update on this issue?

@pebosi
Copy link
Contributor

pebosi commented Oct 16, 2017

Update?

@thorsteneckel
Copy link
Contributor

Locking conversation. There is no new input. +1 and requesting comments create noise and distraction. We are working hard on the next upcoming/most requested features and projects of our support customers. If you want to state your interest in the feature and give valuable input please give the initial post a 👍 reaction and we are able to evaluate it. We will lock all distracting issues from now on. Thanks for your understanding.

@zammad zammad locked and limited conversation to collaborators Oct 16, 2017
@thorsteneckel thorsteneckel assigned muhammadn and unassigned martini Jan 25, 2018
@thorsteneckel thorsteneckel assigned rlue and unassigned muhammadn Apr 22, 2018
@rlue rlue added this to Blocked in OLD Workflow Jul 18, 2018
@rlue rlue moved this from Blocked to Icebox 🍨 in OLD Workflow Aug 24, 2018
@rlue rlue moved this from Icebox 🍨 to In progress in OLD Workflow Oct 15, 2018
@rlue rlue added this to the 2.7.0 milestone Oct 16, 2018
@rlue rlue moved this from In progress to QA in OLD Workflow Oct 16, 2018
@martini martini modified the milestones: 2.7.0, 2.6.1, 2.7.1 Oct 25, 2018
@rlue rlue moved this from QA to Blocked in OLD Workflow Oct 25, 2018
@rlue
Copy link
Contributor

rlue commented Oct 25, 2018

Just a quick status update for everyone waiting on this feature. We have a fix underway (really more of a workaround), but we can't merge it until we get the browser test passing, and we can't get the browser test passing until we set up Capybara.

It may still be some time before that's done. Thank you all for your patience.

@thorsteneckel thorsteneckel removed this from the 2.7.1 milestone Dec 4, 2018
@rlue rlue moved this from Blocked to CI in OLD Workflow Jan 7, 2019
@rlue rlue added this to the 2.9.0 milestone Jan 15, 2019
@rlue rlue assigned MrGeneration and unassigned rlue Jan 15, 2019
@rlue
Copy link
Contributor

rlue commented Jan 15, 2019

Thanks everyone for your patience on this issue. After consulting with @martini, we have arrived at a relatively simple workaround enabled by 043a0af.

Since we are reluctant to modify / overcomplicate the existing email configuration wizard, which satisfies the majority of existing users, we are proposing a CLI workaround for creating an outbound-only email channel.

Once you have upgraded to the latest development version of Zammad (or 2.9.0, when it comes out), run the following command in your Zammad directory to create a new, sendmail-only email channel:

$ zammad rails r "Channel.create!(area: 'Email::Account', options: { inbound: { adapter: 'null', options: {} }, outbound: { adapter: 'sendmail' } }, active: true, preferences: { editable: false }, updated_by_id: 1, created_by_id: 1)"

Once this command has been run, you will see the new email channel appear in your admin settings panel:

46996467-51cfe200-d14f-11e8-9c64-6a827e86f175

Click the "➕ Add" link under the "Email Address" heading to add a new outbound email address.

That's it!


P.S. @MrGeneration will be responsible for adding this feature to the official documentation; this issue will remain open pending the completion of said documentation.

@rlue rlue moved this from CI to Done in OLD Workflow Jan 15, 2019
@MrGeneration
Copy link
Member

That's interesting, this was already living in our documentation.
I tested the commands and corrected them so it is valid.

Change is live already, closing now:
http://admin-docs.zammad.org/en/latest/channel-email/sendmail.html

(Push: zammad/zammad-admin-documentation@c816166 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
OLD Workflow
  
Done
Development

No branches or pull requests