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

Channel error in logs when email plugin receives SMTP message for fanout exchange. #63

Open
big-edd opened this issue Apr 24, 2024 · 3 comments
Assignees

Comments

@big-edd
Copy link

big-edd commented Apr 24, 2024

Hello,

When an SMTP message is received, we see the following in the logs.. ..

2024-04-09 04:55:08.709201+00:00 [info] <0.4071.0> rabbitmq.local SMTP connection from {10,0,0,1}
2024-04-09 04:55:08.709201+00:00 [info] <0.4071.0>
2024-04-09 04:55:08.710524+00:00 [error] <0.4087.0> Channel error on connection <0.4075.0> (<rabbit@rabbitmq.1712632031.4075.0>, vhost: '/', user: 'none'), channel 1:
2024-04-09 04:55:08.710524+00:00 [error] <0.4087.0> operation exchange.declare caused a channel exception precondition_failed: inequivalent arg 'type' for exchange 'smtp-in' in vhost '/': received 'topic' but current is 'fanout'
2024-04-09 04:55:08.714496+00:00 [info] <0.4071.0> EHLO from client.hosts.local
2024-04-09 04:55:08.714496+00:00 [info] <0.4071.0>
2024-04-09 04:55:08.717182+00:00 [info] <0.4071.0> text/plain message from tester@rabbitmq.local to [<<"smtp@rabbitmq.local">>] queued as 7e87e9c6820c31f2af278a34c25ce476
2024-04-09 04:55:08.717182+00:00 [info] <0.4071.0>

Note: The message still finds its way to the queues, so things are still working as expected.

No such message appears when publishing to the exchange directly with AMQP rather than SMTP.. ..

2024-04-09 04:57:26.497542+00:00 [info] <0.4164.0> accepting AMQP connection <0.4164.0> ([10.0.0.1:46986](http://10.0.0.1:46986/) -> [192.168.168.1:5672](http://192.168.168.1:5672/))
2024-04-09 04:57:26.499672+00:00 [info] <0.4164.0> connection <0.4164.0> ([10.0.0.1:46986](http://10.0.0.1:46986/) -> [192.168.168.1:5672](http://192.168.168.1:5672/)): user 'smtp_producer' authenticated and granted access to vhost '/'
2024-04-09 04:57:26.502051+00:00 [info] <0.4164.0> closing AMQP connection <0.4164.0> ([10.0.0.1:46986](http://10.0.0.1:46986/) -> [192.168.168.1:5672](http://192.168.168.1:5672/), vhost: '/', user: 'smtp_producer')

Cheers,
Eddie.

@lukebakken lukebakken self-assigned this Apr 24, 2024
@lukebakken
Copy link
Collaborator

Originally reported here:

https://groups.google.com/g/rabbitmq-users/c/LpjKAIV_zcU

@big-edd - Could you please supply the following information?

  • RabbitMQ and Erlang version
  • Version of this plugin that you are using
  • RabbitMQ configuration files
  • An email message that demonstrates this issue
  • How to reproduce this issue. Assume I know nothing (which, I don't, because it has been a long time since I debugged something with this plugin!)

Thanks. Anything you can do to make it easier for me to set up an environment and reproduce the issue makes it more likely that I have time to fix it.

@big-edd
Copy link
Author

big-edd commented Apr 26, 2024

Will do, but it might take some time to bring all of that together this time.

@lukebakken
Copy link
Collaborator

Thank you! No hurry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants