postalserver / postal Goto Github PK
View Code? Open in Web Editor NEW๐ฎ A fully featured open source mail delivery platform for incoming & outgoing e-mail
Home Page: https://postalserver.io
License: MIT License
๐ฎ A fully featured open source mail delivery platform for incoming & outgoing e-mail
Home Page: https://postalserver.io
License: MIT License
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
Is there a possibility to disable the fast server/tracking?
I did an upgrade to get the latest files (to fix the HELO issue) and it appears the domain link option has gone.
Unless it has been moved?
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?
I think it should be
routes.mail.yourdomain.com. IN MX 10 mx1.mail.yourdomain.com
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.
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 "." "." ".*"
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
I'm sure this is already planned but it would be useful to see this additional info on the graph. If I have time this summer I might look into adding this feature myself.
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 :(
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.
The README states that this is open source but which license is it released under?
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.
I know that is a Ruby app, but an easy way to have this app running on any system is using Docker.
Amazon Route 53 says it's too long, how can i reduce it or use 1024 instead of 2048?
I can't understand how to track:
bounces, complaints, deliveries, sent emails, and rejected emails
I see it has events for bounce, deliveries, sent emails on webhooks, so you track it.
But what about complaints and rejects?
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)
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?
if I use "postal" user, which I can test on command line and works, it says that error when initialize.
If I use root user, it creates all the tables, but then it says the same error (I think it's when is trying to create the admin user).
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.
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
I'm getting a problem when I visit my site where the HTTPS isn't valid. The website still works if I bypass the warning.
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]
Please write complete iptables line, it is a bit abbreviated and is not easy to understand
Hi!!..how are you?...we're currently using sendgrid with several domains basically for 2 reasons
thank you!! have a good day and keep doing a great work
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?
As far as I can see, the repository is missing any guide on how to install this.
Hi!
It would be nice to offer the possibility to use SQS instead of RabbitMQ. ๐
Thanks!
Hey Adam,
Great work on open sourcing this ๐
If I didn't want click or open tracking, is the "fast server" still required? Is there a way to disable it?
Getting an error upon attempting to connect to my site via it's IP.
502 Bad Gateway
nginx/1.10.0 (Ubuntu)
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?
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.
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!
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.
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?
root@appmail:~# postal auto-upgrade
Stopping current MyOps instance
Only cosmetic but might be worthy of a change.
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:
Otherwise, I'm super excited about this! It looks really well done.
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?
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.
Maybe change it to a P, email icon or something?
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.
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.
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.
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.
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.
The "type" attribute has no meaning and doesn't actually do anything.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.