LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail client (https://www.linuxquestions.org/questions/linux-software-2/sendmail-client-240130/)

vacilus 10-08-2004 03:22 AM

sendmail client
 
good morrning to everyone,

I want explaine my problem because I didn't found any solutions :

I want send mail from my linux server (with sendmail or postfix it's the same..) without configure the machine as MTA because already exist another linux server on the lan that makes this.

I think there is a trick for sending mail from linux without the machine is configured as MTA .. otherwise ,How I can have two machine that work with the same domain ? www.myDomain.com ??

thanks in advance

marco

rkmalik 10-08-2004 05:24 AM

sendmail.cf
 
You can always send mails using other MTA, as long as your mailhost entry is right in your sendmail.cf

Here is an example:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# "Smart" relay host (may be null)
DSmailhost$?m.$m$.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Replace mailhost with your MTA name.

Or there is another quick and temporary solution. You could send you local domain mails like this:

echo "test mail body" | mail -s "mail subject" rakesh.malik@mymta.mydomain.com

This will forward the mail to mymta.mydomain.com and you MTA will decide where to send the mail.

Hope this will help!

vacilus 10-08-2004 08:02 AM

tahnks rkmalik !!

I didn't remember SMART_HOST define into sendmail.mc

I don't known very well the .cf's syntax so I prefer configure sendmail by sendmail.mc.

thanks once again !

marco


All times are GMT -5. The time now is 01:58 PM.