<div dir="ltr">I agree, and when I used that command, indeed the primary eth0 was the correct ip addres, and then there are eth0:0 etc with all the other ips of the server, and yet when sending an email, it used the ip at eth0:1.<div>To fix this problem I had to add <span style="color:rgb(12,13,14);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif;font-size:15px">CLIENT_OPTIONS(`Family=inet, Address=x.x.x.66')</span></div><div><font color="#0c0d0e" face="-apple-system, BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif"><span style="font-size:15px">to <a href="http://sendmail.mc">sendmail.mc</a> . After that it will send email using the address I provided, but I hope I didn't mess anything else up by using that.</span></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 14, 2024 at 8:09 PM Michael Stauber via Blueonyx <<a href="mailto:blueonyx@mail.blueonyx.it">blueonyx@mail.blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Greg,<br>
<br>
> I recently changed my main server IP. I made sure to take out all <br>
> references of the old IP address, however when I send out an email <br>
> sendmail seems to use any other IP available on the server except the <br>
> main IP, which makes things difficult for gmail since they like having <br>
> the PTR record point to the main server sending the email. Why isn't <br>
> sendmail using the main server IP? Any suggestions?<br>
<br>
Sendmail and Postfix should typically use the primary IP for sending emails.<br>
<br>
When you run /sbin/ifconfig on your server, then this ought to be the IP <br>
bound to eth0, provided your interfaces are named eth.<br>
<br>
So please check with /sbin/ifconfig to see what IP is bound to the <br>
primary interface and if that's *not* the IP you want to be the primary <br>
IP, then that's probably the root cause of the issue.<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it" target="_blank">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" rel="noreferrer" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</blockquote></div>