postal icon indicating copy to clipboard operation
postal copied to clipboard

Messages are not sending

Open virendrasinght opened this issue 8 years ago • 22 comments

Hi @willpower232 one of my tester is try to send messages via api and smtp but both are going into pending status and not getting change since 24 hours. There are no messages in queue other than that. On same instance I am trying to send message with other server and it goes fine and get sent. dint get what is happening.

virendrasinght avatar Jan 17 '18 11:01 virendrasinght

Can you run postal status to see what is happening? Are you using IP Pools?

willpower232 avatar Jan 17 '18 11:01 willpower232

Yes i am using IP Pools.

virendrasinght avatar Jan 17 '18 11:01 virendrasinght

@willpower232 I tried with postal status and find that all workers are running fine.

virendrasinght avatar Jan 17 '18 11:01 virendrasinght

Did postal status mention anything that wasn't running?

willpower232 avatar Jan 17 '18 11:01 willpower232

screenshot from 2018-01-17 17-26-23 screenshot from 2018-01-17 17-26-48

No all are running fine as shown in above images

virendrasinght avatar Jan 17 '18 11:01 virendrasinght

@willpower232 I dint get why it is picking for one server and not picking for another server.

virendrasinght avatar Jan 17 '18 12:01 virendrasinght

Have you tried restarting Postal?

willpower232 avatar Jan 17 '18 12:01 willpower232

yes I tried 2-3 times

virendrasinght avatar Jan 17 '18 12:01 virendrasinght

Either something isn't quite right in your settings or you need to restart the whole server for some reason. If you can arrange for a restart, that will tell you what the problem is.

willpower232 avatar Jan 17 '18 13:01 willpower232

I can restart the server but the thing is in same instance mails are getting sent through one mail server and not getting sent through another mail server. I have checked mail server configuration for both mail server and find nothing wrong in that. @willpower232 can you tell me that. when unqueue_message_job picking queue messages ?

virendrasinght avatar Jan 17 '18 13:01 virendrasinght

I'm afraid we don't use IP Pools so haven't really got any familiarity with what could be going wrong having checked everything else.

willpower232 avatar Jan 17 '18 13:01 willpower232

As per my knowledge, IP Pool will come into picture when even one delivery attempt has made by application. But here no delivery attempts was made by application and messages are still in pending.

virendrasinght avatar Jan 17 '18 13:01 virendrasinght

Changed the IP Pool to other and it works. Dint get why it was not working with that IP Pool?

virendrasinght avatar Jan 17 '18 13:01 virendrasinght

That would imply that the settings for the not working IP Pool are wrong. If you run ip a on the server you can verify that the IP address is available on the server but I don't know what else could be wrong off the top of my head.

willpower232 avatar Jan 17 '18 13:01 willpower232

Okay I will check that. Thanks for the support.

virendrasinght avatar Jan 17 '18 15:01 virendrasinght

@willpower232 same pending problem happen again. Some email got stuck in pending state since 1 - 2 days. No worker has attempt that mails yet. Don't know what is the actual reason.

postal-1

screenshot from 2018-08-22 15-46-39

Having 6 workers and all are running fine as you can see in above screenshots. Whatever IPs assign to that mail server are available there as i have checked through ip a

virendrasinght avatar Aug 22 '18 10:08 virendrasinght

If they're getting stuck, you could try setting up Sentry and reporting any exceptions

https://github.com/atech/postal/issues/597#issuecomment-396082284

willpower232 avatar Aug 22 '18 10:08 willpower232

Okay thanks I will check

virendrasinght avatar Aug 22 '18 11:08 virendrasinght

My requeuer and worker are not running it is written there failed, what should I do? Please anyone help me..

Williamisbest avatar Apr 25 '21 03:04 Williamisbest

@Williamisbest check worker log once in application or do postal stop and postal start

virendrasinght avatar Apr 25 '21 03:04 virendrasinght