Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Well, if you are using mailx, then you should have a config file for it to read... usually ~/.mailrc
And, from the man page on how to create the settings for an account:
Quote:
Originally Posted by man mailx
account
(ac) Creates, selects or lists an email account. An account is formed by a group of commands, primarily of those to set variables. With two arguments, of which the second is a `{', the first argument gives an account name, and the following lines create a group of commands for that account until a line containing a single `}' appears. With one argument, the previously created group of commands for the account name is executed, and a folder command is executed for the system mailbox or inbox of that account. Without arguments, the list of accounts and their contents are printed. As an example,
Code:
account myisp {
set folder=imaps://mylogin@imap.myisp.example
set record=+Sent
set from="myname@myisp.example (My Name)"
set smtp=smtp.myisp.example
}
creates an account named `myisp' which can later be selected by specifying `account myisp'.
@dc.901 No success. I know the problem but I don't know the solution. Somehow emails are going through cloud mail server (Office 365) instead of the internal mail server. I don't know what that is happening but I can clearly see it happening.
I'm just advised that there is an authentication on the internal mail server and they have created a service account for me. How should I use it? I don't know much about it.
I'm just advised that there is an authentication on the internal mail server and they have created a service account for me. How should I use it? I don't know much about it.
Have you reviewed their documentation and/or asked them for support?
I don't know anything about it or how to use it, but there looks to be pretty good documentation on that site.
@scasey, Thanks for that, I can figure that out, my concern is how to tell CentOS not to use O365 but to use the internal mail server. How to configure that. There must be some settings for that?
An interesting thing is another Centos machine is sending email correct, although they are being received in Junk folder, but at least its working.
Is this another Centos machine also in DMZ network? And how exactly are you sending emails from this another server (mail command, telnet, or your application)?
As chrism01 mentioned, review your logs to see what's happening.
After you send emails from both servers, what is output of mailq command?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.