Let's hope the cause of your smell is just junk and bacteria in the drain, not a blocked vent.

To clean the line, pour a solution of 1 gal of hot water with a cup of bleach, vinegar or baking soda.

If the smell goes away but returns, do it again on a weekly basis.

If the smell doesn't go away, call your plumber.