Set up Sendmail as sending only server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Set up Sendmail as sending only server
# 1  
Old 09-28-2010
Set up Sendmail as sending only server

I have set up where my primary fibre optical WAN access does not have any sending SMTP service but my fall-back ADSL service does. However, with most Internet Service Providers, the SMTP service access is "locked" to the IP addresses that the service knows about. Therefore I can not send SMTP requests to my ADSL service while using the fibre optical. I have then installed Sendmail on a CentOS 5.5 64 bit so as to allow sending SMTP request no matter what service is active.

My new problem is that I can not sending SMTP requests to email address on my own domain (receiving email server not in my offices!)

How can I configure Sendmail server to be a sending SMTP server only.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending mail with attachment(image) using sendmail in Linux(ksh)

Hi guys, I am trying to send a mail with below command which is working fine. $FilePath_mail have To,From and other information along with mail body which is in HTML format. I want to have image(logo) in the body. So just wanted to send it as an an attachment. /usr/sbin/sendmail -t <... (1 Reply)
Discussion started by: balakrishnaps
1 Replies

2. Shell Programming and Scripting

Sending formatted email with sendmail question

Hi All, Can anyone help with an email formatting question: Im using the following example to try and send a formatted email: outputFile="file.txt" ( echo "From: oracle@inovis.com" echo "To: john.dickinson@gxs.com" echo "MIME-Version: 1.0" echo "Subject: Test Font" echo... (4 Replies)
Discussion started by: jonnyd
4 Replies

3. Shell Programming and Scripting

Sending attachment using sendmail command

Send_Mail() { C_Date=`date +"%m/%d/%Y"` #Subject="MMDB Load Job Status" for i in `cat $Metafile` do if then email_address=`echo $i | cut -d":" -f2` /usr/lib/sendmail "$email_address" < $Email_File fi done } this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies

4. Red Hat

Delay in sending email to-from localhost in Sendmail

Hi Friends, I am very much new to sendmail or any other mta. I just installed sendmail 8.14 on my rhel6 machine. I was trying to send email to local user but after entering the message when i press CTRL-D it simply hangs. I also tried sending email via mutt but again mutt also hangs. It sends... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

5. Shell Programming and Scripting

Problem in sending inline html with an attachment using sendmail

MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=border --border Content-Type: text/html Content-Disposition: inline <html><body><h2>This text should be displayed with html formatting</h2></body></html> --border Content-Type: text/plain Content-Disposition: attachment This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

6. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

7. UNIX for Advanced & Expert Users

Sendmail problems -- with sending mail

Hello, I am C. and I would like to send mail with Sendmail to my hotmail-account. But this doesn't work, the mail always returns in the file: /var/spool/mail/root. Probably there is something wrong with my SmartHost. I configured it like: define ( 'SMART_HOST','smtp.direct-adsl.be') -->... (1 Reply)
Discussion started by: caroline
1 Replies

8. Shell Programming and Scripting

Attaching file and sending text in body using sendmail command!!

Hello, I need to send with text in the body and 2 files as attachments using sendmail command. i can send only one at a time either attachment or text in body of email. Can any one please help me how to get that? I will be great for any help. Thanks, Sparan (1 Reply)
Discussion started by: sparan_peddu
1 Replies

9. UNIX for Advanced & Expert Users

Sendmail retries sending to non-existant users

How can i get sendmail to immediately bounce mail when the server on the other side gives a "550 unknown user" SMTP error? Currently, the outbound mail stays in the queue and is retried until our server gives up, some days later. (0 Replies)
Discussion started by: vertigo23
0 Replies
Login or Register to Ask a Question
SMTP_auth(3pm)						User Contributed Perl Documentation					    SMTP_auth(3pm)

NAME
Net::SMTP_auth - Simple Mail Transfer Protocol Client with AUTHentication SYNOPSIS
use Net::SMTP_auth; # Constructors $smtp = Net::SMTP_auth->new('mailhost'); $smtp = Net::SMTP_auth->new('mailhost', Timeout => 60); DESCRIPTION
This module implements a client interface to the SMTP and ESMTP protocol AUTH service extension, enabling a perl5 application to talk to and authenticate against SMTP servers. This documentation assumes that you are familiar with the concepts of the SMTP protocol described in RFC821 and with the AUTH service extension described in RFC2554. A new Net::SMTP_auth object must be created with the new method. Once this has been done, all SMTP commands are accessed through this object. The Net::SMTP_auth class is a subclass of Net::SMTP, which itself is a subclass of Net::Cmd and IO::Socket::INET. EXAMPLES
This example authenticates via CRAM-MD5 and sends a small message to the postmaster at the SMTP server known as mailhost: #!/usr/bin/perl -w use Net::SMTP_auth; $smtp = Net::SMTP_auth->new('mailhost'); $smtp->auth('CRAM-MD5', 'user', 'password'); $smtp->mail($ENV{USER}); $smtp->to('postmaster'); $smtp->data(); $smtp->datasend("To: postmaster "); $smtp->datasend(" "); $smtp->datasend("A simple test message "); $smtp->dataend(); $smtp->quit; CONSTRUCTOR
new Net::SMTP_auth [ HOST, ] [ OPTIONS ] This is the constructor for a new Net::SMTP_auth object. It is taken from Net::SMTP as all other methods (except auth and auth_types) are, too. METHODS
Unless otherwise stated all methods return either a true or false value, with true meaning that the operation was a success. When a method states that it returns a value, failure will be returned as undef or an empty list. auth_types () Returns the AUTH methods supported by the server as an array or in a space separated string. This string is exacly the line given by the SMTP server after the "EHLO" command containing the keyword "AUTH". auth ( AUTH, USER, PASSWORD ) Authenticates the user "USER" via the authentication method "AUTH" and the password "PASSWORD". Returns true if successful and false if the authentication failed. Remember that the connection is not closed if the authentication fails. You may issue a differ- ent authentication attempt. If you once are successfully authenticated, you cannot send the "AUTH" command again. The "AUTH" method "NTLM" is supported via Authen::NTLM (thanks to James Fryman). SEE ALSO
Net::SMTP and Net::Cmd AUTHOR
Alex Pleiner <alex@zeitform.de>, zeitform Internet Dienste. Thanks to Graham Barr <gbarr@pobox.com> for Net::SMTP. NTLM authentication code provided by James Fryman <jfryman@gmail.com> COPYRIGHT
Copyright (c) 2001, 2003, 2006 zeitform Internet Dienste. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2006-01-13 SMTP_auth(3pm)