Configure sendmail for multiple smarthosts depending on sender
by mfoley from LinuxQuestions.org on (#525QM)
I've found how to configure sendmail for multiple smarthosts, but what I want to do is to use a different smarthost depending on the sender.
Application: I have subscribed to sendGrid which I would like to use for sending group-email to members of a club whose webpage I host. For all other email, e.g. notices to me (webadmin) about attempted break-ins, backup notices, etc., I'd like those through a different smarthost, NOT the sendGrid relay as sendGrid limits the total number of emails to be sent.
Is there a way to do this?
Does the -G option of sendmail let me specify a relay?


Application: I have subscribed to sendGrid which I would like to use for sending group-email to members of a club whose webpage I host. For all other email, e.g. notices to me (webadmin) about attempted break-ins, backup notices, etc., I'd like those through a different smarthost, NOT the sendGrid relay as sendGrid limits the total number of emails to be sent.
Is there a way to do this?
Does the -G option of sendmail let me specify a relay?