If the problem is that it's blocked you can tell by looking at /var/log/maillog
May 3 20:20:50 zeus sm-mta[1035]: h441KnEV001032: to=<david@domain1.com>, ctladdr=<david@zeus.domain2.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30419, relay=mail.domain1.com. [178.34.55.1], dsn=4.0.0, stat=Deferred: mail.domain1.com.: No route to host
this can be fixed by adding the isps server to the sendmail.cf
before
# "Smart" relay host (may be null)
DS
after
# "Smart" relay host (may be null)
DSsmtp.safepages.com
If you don't need to do this all the time, but only when using this particular isp then set it up as a fallback
# fallback MX host
O FallbackMXhost=smtp.safepages.com
May 3 20:25:26 zeus sm-mta[1053]: h441KnEV001032: to=<david@domain1.com>, ctladdr=<david@zeus.domain2.com> (0/0), delay=00:04:37, xdelay=00:00:01, mailer=relay, pri=120419, relay=smtp.safepages.com. [216.127.146.11], dsn=2.0.0, stat=Sent (Ok: queued as BE4291877E0)
now smtp.safepages.com sends it to mail.domain1.com (the email addresses mail server found in dns for
david@domain1.com)
Now, there is one other problem
the email address is not the one you want mail returned to in some cases.
In my case this is true. I am sending out on my laptop (zeus.domain2.com) using sendmail the return address and origin by default is
david@zeus.domain2.com however this is not where I want it to appear to come from or be returned to. I want it to come from
david@domain1.com
this is fixed by doing this....
do m4 build with masquerade
MASQUERADE_AS(domain1.com)
MASQUERADE_DOMAIN(domain2.com)
MASQUERADE_DOMAIN(zeus.domain2.com
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)