-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't enable plugin under Erlang 22 #38
Comments
RabbitMQ 3.7.15 ; Erlang 22.0.1 |
If need - can redirect flow of mail to rabbit smtp. how i can start using, what's the question... |
I believe this is due to incompatibility of an internal dependency (gen_smtp) with Erlang 22. (Reported and fixed Apr,4: gen-smtp/gen_smtp#168.) |
will check tnx. |
The build is using my fork, which was set to an old version. I just sync-ed the fork with the gen_smtp 0.14.0, which means that the "longer fix" (rebuild) shall work now. |
it's very hard on vm not in docker do downgrade, which branch i need clone and compile? 3.7 ? |
reinstall plugins with git clone and make command + make dist 2019-05-29 14:31:10.126 [info] <0.8.0> Server startup complete; 4 plugins started.
see queue for outgoing letters, where email-in ? |
Am i right that queue "email-in" it's for domain example.com users? So if i send to rabbit smtp server message to someone@example.com it will be in this queue or alternative exchange and plugin does not go by schedule to gmail to collect letters and place to queue ? |
Yes, under |
got domain example-server.com add mx set. [
]. |
queue "email-in" is not shown, sended letter to mailbox. |
019-05-30 16:19:27.524 [info] <0.410.0> started TCP listener on [::]:5672 |
Maybe i need mail server setup on this server ? postfix/dovecot etc ... |
No, you don't. What happens when you use the |
zabralex85@main:~$ python smtp.py |
changed auth to false and see in exchanges: |
Please note also that standard SMTP servers listen on port 25, so if you want to receive e-mails directly from public intenet you need to listen on the port 25, or setup iptables to redirect 25 to 2525. |
hmm i thought that message will be in queue ... |
Sender => Google Mail => Routing => My Server (MX, Static IP) => rabbitmq_email => queue |
In common case i want to convert mailbox to queue. |
cause my reader made on C# and connects to queue:
|
created queue email-int-in |
If i send frequently i see that graph of "Publish (in)" is growing but nothing in queue |
in logs i see: 2019-05-31 05:03:50.848 [info] <0.4694.0> example-server.com SMTP connection from {127,0,0,1} |
script to send: import smtplib HOST = "localhost" BODY = "\r\n".join(( server = smtplib.SMTP(HOST, PORT) |
if i publish message to exchange in dasboard it goes to queue ... |
I guess the queue to exchange binding does not match the routing key You can use a |
i have no vhosts - default setup ... it's matter? |
I believe you will always have at least the default vhost |
understood - think you can close issue. |
FTR, the default virtual host can be renamed to be anything other than |
i have same problem with RabbitMQ 3.7.16
@gotthardp gotthardp will you release new version to fix this pain? :) |
@ergoz, please don't piggyback old issues. Releases with eiconv create target CPU dependency, so they cannot be released via the standard process and published. If you need eiconv, I suggest you open a new issue for the failing eiconv build. |
@gotthardp read my message fully, please. I have problem with plugin if i build without eiconv too! I posted log with it. My problem not in eiconv, my problem firstly in what in log. |
@ergoz, please don't reuse old issues. You said you needed eiconv, so I saw no point in trying to build it witout it. The |
Wan't only to recieve messages from google mail.
example.com - my domain, google suite have bindinx with MX to it via goddady
try: rabbitmq-plugins enable rabbitmq_email
output:
Enabling plugins on node rabbit@main: rabbitmq_email The following plugins have been configured: rabbitmq_email rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatch Applying plugin configuration to rabbit@main... (rabbitmqctl) lib/rabbitmqctl.ex:45: RabbitMQCtl.main/1 (elixir) lib/kernel/cli.ex:105: anonymous fn/3 in Kernel.CLI.exec_fun/2
log:
`
2019-05-28 19:08:58.313 [info] <0.8.0> Server startup complete; 3 plugins started.
2019-05-28 19:09:25.547 [warning] <0.633.0> iconv not detected: content transcoding is DISABLED
2019-05-28 19:09:25.549 [info] <0.634.0> gen_smtp_server starting at rabbit@main
2019-05-28 19:09:25.549 [error] <0.634.0> CRASH REPORT Process <0.634.0> with 0 neighbours crashed with reason: call to undefined function socket:listen(tcp, 2525, [binary,{ip,{0,0,0,0}},inet])
2019-05-28 19:09:25.550 [error] <0.633.0> Supervisor {<0.633.0>,rabbitmq_email_app} had child email_handler started with gen_smtp_server:start_link(rabbit_email_handler, [[{port,2525},{protocol,tcp},{domain,"example.com"},{address,{0,0,0,0}}]]) at undefined exit with reason call to undefined function socket:listen(tcp, 2525, [binary,{ip,{0,0,0,0}},inet]) in context start_error
2019-05-28 19:09:25.552 [error] <0.631.0> CRASH REPORT Process <0.631.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,email_handler,{undef,[{socket,listen,[tcp,2525,[binary,{ip,{0,0,0,0}},inet]],[]},{gen_smtp_server,extract_listener,2,[{file,"src/gen_smtp_server.erl"},{line,149}]},{gen_smtp_server,'-init/1-lc$^0/1-0-',2,[{file,"src/gen_smtp_server.erl"},{line,129}]},{gen_smtp_server,init,1,[{file,"src/gen_smtp_server.erl"},{line,129}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]},{proc_lib,init_p_do_apply,...}]}}},...} in application_master:init/4 line 138
2019-05-28 19:09:25.562 [info] <0.43.0> Application rabbitmq_email exited with reason: {{shutdown,{failed_to_start_child,email_handler,{undef,[{socket,listen,[tcp,2525,[binary,{ip,{0,0,0,0}},inet]],[]},{gen_smtp_server,extract_listener,2,[{file,"src/gen_smtp_server.erl"},{line,149}]},{gen_smtp_server,'-init/1-lc$^0/1-0-',2,[{file,"src/gen_smtp_server.erl"},{line,129}]},{gen_smtp_server,init,1,[{file,"src/gen_smtp_server.erl"},{line,129}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]},{proc_lib,init_p_do_apply,...}]}}},...}
2019-05-28 19:09:25.565 [info] <0.43.0> Application gen_smtp exited with reason: stopped
`
config:
`
[
{loopback_users,[]},
{rabbitmq_email, [
{server_config, [
[{port, 2525}, {protocol, tcp}, {domain, "example.com"}, {address,{0,0,0,0}}]
]},
{server_auth, rabbitmq},
{server_starttls, true},
{email_domains,[{<<"example.com">>, {<<"/">>, <<"email-in">>}}]},
{email_queues, [{{<<"/">>, <<"email-out">>}, <<"example.com">>}]},
].
`
The text was updated successfully, but these errors were encountered: