Git Product home page Git Product logo

postal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

postal's Issues

SMTP using self-signed

Not that i've been able to find, the SMTP server uses self-signed SSL.

We can assign the same real SSL we are testing the web/admin interface with but can't seem to find anywhere to link the key/cert to.

Cannot spot anything in the docs I might have missed either.

Missing license

It seems there's no license for the software at the moment which means it's not usable by most of us. Licensing is a pretty important part, especially within an organisation, any idea when this might be added?

Docker support

I know that is a Ruby app, but an easy way to have this app running on any system is using Docker.

Add the ability to change the SMTP SSL certificate

I'm using Lets Encrypy for the HTTPS SSL cert so I'd also like to use that for the SMTP cert as it currntly seems to be using the one in config/smtp.cert & config/smtp.key.

Would it be possible to change this to a config variable where I can point it to my Lets Encrypt key location?

This may also be linked to #39, #43 & #44

API documentation or tests?

Hi there,

first thanks for making this awesome project open source. Looks really well written.
However what I am kinda missing is tests/specs or any other kind of documentation.

Do you have that somewhere else? Could not find that in the repo.

Thanks
Andreas

Can't get emails from Postal admin

I am currently locked out of my admin account because I changed the settings. Now it requires the 6-digit code to resume panel use. I have configured the SMTP settings and could send test mail fine, but I can't get the Postal admin panel to send me emails itself.

From postal.yml:

smtp:
  # Specify an SMTP server that can be used to send messages from the Postal management
  # system to users. You can configure this to use a Postal mail server once the
  # your installation has been set up.
  host: mail.iPutMyDomainHere.com
  port: 2525
  username: iPutMyUsernameHere
  password: iPutMyPasswordHere
  from_name: Postal
  from_address: [email protected]

Auto start?

Is there any way to auto start on boot?
Also, if you reboot and try to start it manually, it says

Error: The PID directory (/opt/postal/app/tmp/pids) is not empty. Cannot start unless things are clean.

Merge SMTP servers using nio4r

Currently there are 2 separate SMTP servers, an event driven server for Linux utilizing epoll a threaded server for hosts that don't support epoll.

These could be merged into a single event driven server by using the nio4r gem to handle differing OS capabilities.

Mail Server?

Can this be used as a mail server? The introduction is not very clear. For example, i have a domain (mysupercooldomain.com). Can i run postal on a VPS and just use it as a regular mail server ? and use mail client (outlook...) to connect to it?

Postal won't send emails from external server

So Postal can send test emails from the admin UI just fine, but when I attempt send emails from a remote server via SMTP nothing happens. I suspect this is related to the Postal admin email sending issue.

Style and JS dosen't found

Hi

we have installed Postal on CentOS 6 successfully installed. But the Style and JavaScript dosen't load. Somewhere else with this problem?

bildschirmfoto 2017-04-26 um 23 19 21

bildschirmfoto 2017-04-26 um 23 18 57

Scalability/Redundancy

As this is very much a single box deployment - is there scope to have multiple real SMTP servers just in case the current (main/only) one fails?

We were testing Postmark/MailGun/random-mail-service which have some degree of this built in but being able to control is nicer (and more private).

Setting up two servers and replicating the database has it's own issues as far as I could work out but would like to at least have another server just in case it fails meaning apps cannot inject email.

Use External SMTP Relays

It would be nice to be able to configure Postal to use a set of external email relays rather than rely on the internal SMTP implementation and IP Pools.

This would allow separation of the actual delivery infrastructure from Postal and allow Postal to become more of an "interface" to send, receive and administrate email. It would also allow Postal to be "dropped" on top of existing installations and work out of the box without too much reconfiguration.

In our use case, we already have a large email delivery infrastructure in place that uses multiple Postfix servers and a SMTP load balancer. We'd like to keep this installation in place, along with their relatively complex configurations that have evolved over the years, but use Postal as an interface to this to allow sending email via HTTP and SMTP, but also give much greater insight into what and how much email is being sent and delivered. We currently aggregate this information from mail logs and display it on a Grafana dashboard.

I'd imagine this could be implemented as an extension of the current IP Pools functionality. If this is something you'd be open to, I'm happy to work on a PR to get this merged in.

Full mail server support

Hi, will it be possible to have a full mail server support? (SMTP, IMAP, POP3). It would be nice for users that want to use it as a normal mail server for their company.

Blocked when changing default email

Hi,

I just installed postal, very nice software!

I sent my first test mail, and it went ok.

But now, I tried to change default user to my email, email is not sent, and now I have a blocking screen asking for me a code that never came.

Is it posible to see this code anywhere in my server? or how should I do it??? I can't use system anymore :(

NGINX fails to restart after making changes

After running:
sudo /etc/init.d/nginx restart

I get the output:

[....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
 failed!

Here is the error log:

-- Unit nginx.service has begun starting up.
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 nginx[2011]: nginx: [emerg] BIO_new_file("/etc/nginx/ssl/postal.crt") failed (SSL: e
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 nginx[2011]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 systemd[1]: nginx.service: Control process exited, code=exited status=1
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 systemd[1]: Failed to start A high performance web server and a reverse proxy server
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nginx.service has failed.
-- 
-- The result is failed.
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 systemd[1]: nginx.service: Unit entered failed state.
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 26 22:10:00 ubuntu-512mb-nyc2-01 sudo[1998]: pam_unix(sudo:session): session closed for user root

Perhaps I made a mis-configuration in the previous step?

Authie gem authentication issue

When running bundle install for the first time, the connection to codebase.com to access the authie gem fails:

Fetching [email protected]:atechmedia/libs/authie
The authenticity of host 'codebasehq.com (185.22.208.214)' can't be established.
ECDSA key fingerprint is SHA256:FdiEvTmXHY6bFGEnK7nTAjgMRCNe6K+CAWi6xiCi9Xo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'codebasehq.com,185.22.208.214' (ECDSA) to the list of known hosts.
Error: Access to this account not permitted from this IP.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Import from AppMail

Hey there, I understand you've only just released this but it would be cool to have an import function to import servers and messages from AppMail into my new Postal server (once I have it setup)

Can send test email, but not any other mail

Hi,

I'm just configuring the system.

Sending email is successful when sending test email through:

Server > Messages > Send Message

from test at kendozone.com To julien at t4b.mx

Now, When I try to change admin email, I don't receive anything. ( I should receive code )

In Nginx log, I can't see anything. Is there any logs I can use to debug?

In /opt/posal/config/postal.yml I have:

  # Specify an SMTP server that can be used to send messages from the Postal management
  # system to users. You can configure this to use a Postal mail server once the
  #ย your installation has been set up.
  host: 127.0.0.1
  port: 2525
  username: kz/my-mail-server
  password: *****************
  from_name: Test
  from_address: [email protected]

Any Idea how should I do?

IPv4/6 pair on pool address

When you only set a v4 address on an IP pool address, there are lots (and lots) of errors generated from the worker.

If you set a matching v6 address, this goes away.

Support Amazon SQS

Hi!

It would be nice to offer the possibility to use SQS instead of RabbitMQ. ๐Ÿ˜„

Thanks!

No license included

The README states that this is open source but which license is it released under?

Incorrect wiki rabbitmqctl add_vhost?

I followed the instructions
sudo rabbitmqctl add_vhost /postal
sudo rabbitmqctl add_user postal XXX
sudo rabbitmqctl set_permissions -p /postal postal "." "." ".*"

But I was getting an error
Bunny::NotAllowedError: Connection-level error: NOT_ALLOWED - access to vhost 'postal' refused for user 'postal'

I modified the instructions removing the slash and it appears to be working. I am still playing around with the software but there may be something missing here.
sudo rabbitmqctl add_vhost postal
sudo rabbitmqctl add_user postal XXX
sudo rabbitmqctl set_permissions -p postal postal "." "." ".*"

Mails going into spam folder

Hi,
I'm new to this. I install Postal today. Thanks for the good documentation.

I setup my first testserver and send out an testmail. This mail are going directly into the spam folder of the receipient.
Any ideas why?

When I send through MailGun, I have no issues.

Torsten

bundle install error "killed"

These are my logs from a clean install of Ubuntu 16.04

root@ubuntu-512mb-nyc2-01:~# postal bundle /opt/postal/app/vendor/bundle
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 11.3.0
Using multipart-post 2.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 2.0.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using authie 3.0.0
Using execjs 2.7.0
Using minitest 5.10.1
Using bcrypt 3.1.11
Using bson 4.0.4
Using byebug 9.0.6
Using chronic 0.10.2
Using coffee-script-source 1.10.0
Using method_source 0.8.2
Using thor 0.19.4
Using hashie 3.4.6
Using multi_xml 0.5.5
Using amq-protocol 2.0.1
Using deep_merge 1.1.1
Using dynamic_form 1.1.4
Using encrypto_signo 1.0.0
Using epoll 0.3.0
Using tilt 2.0.5
Using jwt 1.5.6
Using mysql2 0.4.4
Using nifty-utils 1.1.7
Using basic_ssl 1.0.3
Using bundler 1.14.6
Using sass 3.4.22
Using useragent 0.16.8
Using turbolinks-source 5.0.0
Using faraday 0.9.2
Using tzinfo 1.2.3
Installing puma 3.8.2 with native extensions
Installing json 1.8.6 with native extensions
Installing nokogiri 1.7.1 with native extensions
/usr/bin/postal: line 19: 23845 Killed                  sudo -u postal bundle install --path=/opt/postal/app/vendor/bundl
e --without=development --jobs=4 --clean

How is Postal more suitable?

Hi,

It was originally launched by us as AppMail but renamed to Postal as part of making it open source as we felt the name was more suitable.

Are you aware of the computer game with the same name, or the expression "going postal"?

The software looks promising.

Cheers!

API fails if charset is set as part of the content type

I'm writing a Java API client and found an issue with the API endpoints only when the charset is specified as part of the Content Type header.

If the content type in the HTTP request is set to Content-Type: application/json then the API works as expected, however, if you add the charset parameter, such as Content-Type: application/json; charset=UTF-8 the API fails to parse the request body and fails with an error that "There are no recipients defined to received this message"

I haven't had a chance to look at the postal code yet to track down the issue, but I can easily reproduce it now using postman.

how it handle possible ip blacklist

Hi!!..how are you?...we're currently using sendgrid with several domains basically for 2 reasons

  1. email visual builder: we can use templates and configure how the emails will look, that is great, probably in a future would be possible incorporate mosaic to postal or some alternative
  2. blacklist: we're sure that the ip will be clean and the users could send emails at any moment, are there some possibility that our server will be blocked being added to one blacklist and we need to remove ourselves from these lists?...what could be the limitations about use your own server as email server?..

thank you!! have a good day and keep doing a great work

Sone sort of external authentication support

There are a number of protocols in this space that all have fairly wide deployments, so pretty much any of these choices isn't too bad.

Namely, I don't want to have to manage another credential pair. I just want to be able to point this app to a IDM of some sort, like FreeIPA, Active Directory or Gluu, and use those credentials.

Common protocols:

  • SAML
  • LDAP
  • OpenID Connect
  • OAuth
  • Trusting specific headers, to let some authentication proxy like bitly's oauth_proxy handle it for you

Otherwise, I'm super excited about this! It looks really well done.

HELO invalid?

We're seeing the odd error when trying to send.

504 5.5.2 : Helo command rejected: need fully-qualified hostname

I cannot see anywhere in the configuration where that needs to be set (or can be).

Any pointers?

auto-upgrade text

root@appmail:~# postal auto-upgrade
Stopping current MyOps instance

Only cosmetic but might be worthy of a change.

Add espect functionality into Postal itself

When Postal ran as AppMail message inspection (spam & viruses) happened by talking to an external service we wrote called espect. It simply accepted a message body, ran it through the checkers and returned some JSON that the application read.

To keep things simple, this functionality needs to be moved directly into the Postal application and documentation needs to be written to explain how to configure SpamAssassin and ClamAV on the server.

Java API Client

Since I can't open a PR for the Wiki, I just wanted to add to the "clients" section that I posted a basic Java client now that handles sending messages and raw messages - https://github.com/matthewmgamble/postal-java

I'll be updating it with the messages functions as well as I have time / need for them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.