Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In my server have multiple ips , if i try to send mail via relayhost all ips taken same relay only, but i need first ips taken relay other ips wont allow relay , how can i do that , any one know the answer help me
In my server have multiple ips , if i try to send mail via relayhost all ips taken same relay only, but i need first ips taken relay other ips wont allow relay , how can i do that , any one know the answer help me
Read the "Question Guidelines" link in my posting signature. You provide no details about your system, tell us what mail system you're using on what version/distro of Linux. We can't guess. And please do basic research before posting.
There are abundant how-to guides you can find with a brief Google search; either "postfix single ip address outgoing" or "sendmail single ip address outgoing".
after am trying to send mail first ip via this relay its properly working . and am trying second ip to snd mail. this ip also taken same relay.. but my need first ip wants to take relay. not a second ip..
after am trying to send mail first ip via this relay its properly working . and am trying second ip to snd mail. this ip also taken same relay.. but my need first ip wants to take relay. not a second ip..
Use CODE tags when posting configs/code, please. And your question is now vague...are you saying you want to use your CentOS system AS a relay host, or you want it to send all its mail to ANOTHER relay host, via one address???
centos is not relay host here, i mention centos is my server os . am buy a relay from ISP. now my doubt is
for example ) i have a 2 IPS 2 relays . if i want to send mail via first ip . it need to be take first relay
if i want to send mail via second ip . it needs to take second relay.
centos is not relay host here, i mention centos is my server os . am buy a relay from ISP. now my doubt is
for example ) i have a 2 IPS 2 relays . if i want to send mail via first ip . it need to be take first relay if i want to send mail via second ip . it needs to take second relay.
Ok; again, read the previous posts that **TELL YOU** what to do.
i have tried this all the ways but i couldn't reach my required output.
i have a two ips like 172.25.0.1,172.25.0.2 and i have a only one relayhost [smtp.example.com]. now i try to send mail via ip 172.25.0.1 its taken [smtp.example.com] relay . its working fine . no issues on that. After i try to send mail via ip 172.25.0.2 its also taken same relay only. but i need to configure relay for only one ip . if i send mail via second ip its need to through error .
Right; again, you either have not read or understood what you were told. You were given search terms, and handed a link that explains, in detail, what to do, what directives to use, and in what config files.
Re-stating your problem (again), does nothing to solve it. Either read and follow the instructions, or there isn't much we can help you with, and you should hire someone to do this job for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.