Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
But...........in transformerless supplies it is always good practice to reduce the total current draw.
I assume that your relay is 30 mA @ 5V.
If you change the relay coil to 12V and feed that from the voltage previous to the 7805, then a similar relay will only draw about 12.5 mA.
You would need an external NPN transistor to drive it, but those are really, really cheap.
The 1N4007 could be 1N4001. There is no high voltage on these diodes.
The voltage is high across the 1M resistor. Many resistors can not take that much voltage. You might need to use 2, 3, or 4 resistors to reduce the voltage each.