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
ESMTPRC(5)							File Formats Manual							ESMTPRC(5)

NAME
esmtprc - esmtp configuration file. DESCRIPTION
A esmtp configuration file consists of several options. The options format is: keyword=value The equal sign is optional and can be replaced by whitespace. The value may be enclosed in simple or double quotes, in which case special characters can be escaped as in normal C strings. Comments are delimited by the '#' character up to the newline character. OPTIONS
hostname Set SMTP host and service (port). The format is: host.example.org[:service] With no whitespace surrounding the colon if service is specified. service may be a name from /etc/services or a decimal port number. If not specified the port defaults to 587. Note (from libESMTP documentation): the default port number is set to 587 since this is the port that should be used for mail sub- mission, see RFC 2476. By choosing this default now, the API does not change behavior unexpectedly in the future as use of the new standard becomes commonplace. The host-port notation simplifies things for the application, the user can type "localhost:smtp" or "localhost:25" where the application expects a host name. username Set the username for authentication with the SMTP server. Do NOT set the username and password in the system configuration file unless you are the only user of this machine. Esmtp is not run with suid privileges therefore the system configuration file must be readable by everyone. If your SMTP server requires authen- tication and you are not the only user then specify your personal SMTP account details in the user configuration file. password Set the password for authentication with the SMTP server. starttls Whether to use the StartTLS extension. It can be one of enabled, disabled or required. It defaults to disabled. certificate_passphrase Set the certificate passphrase for the StartTLS extension. helo Set the hostname to identify as when sending HELO or EHLO commands. (This is a per identity option, as it should be the name you are seen as from the connected host, which may vary with host to host due to NAT or different naming schemes). qualifydomain Make all local addresses to remote ones by adding @ and this name. force sender Set a "Sender:" header and ignore those in the message. "%u" will be replaced with the username. "%%" by "%". force reverse_path Set the envelope from address. The address given to -f will only be used as "From:" when the message contains none. "%u" will be replaced with the username. "%%" by "%". message_id Whether to set the Message-ID field of the message before sending. Normally the receiving MTA sets the Message-ID if missing, so you can turn this off if your sending host does not have a fully qualified domain name. Allowed values are either enabled or disabled. It defaults to enabled preconnect Shell command to execute prior to opening an SMTP connection. This may be useful in conjunction with application-level transports (e.g. ssh with its port-forwarding functionality) to secure the SMTP connection. Esmtp will wait for the command to exit before proceeding. If the command returns a non-zero status, delivery will be aborted. identity Define an identity. An identity is a set of options associated with a given address. For example: identity = myself@somewhere.com hostname = smtp.somewhere.com:25 username = "myself" password = "secret" Identities are be selected by the address specified in the -f flag. You can have as many you like. The options in the global section (up to the first identity option) constitute the default identity. If no options in the global section are given then the first defined identity is taken as the default one. Note that the default identity settings are not shared by the other identities. Everything (username, password, etc.) must be spec- ified for every identity even if they don't differ from the default identity. mda Set the Mail Delivery Agent (MDA). Esmtp relies upon a MDA for local mail delivery, i.e., addresses without a '@' character. A non-zero error status tells esmtp that delivery failed. The local delivery addresses will be inserted into the MDA command wherever you place a %T. The mail message's From address will be inserted where you place an %F. Some common MDAs are "/usr/bin/procmail -d %T", "/usr/bin/deliver" and "/usr/lib/mail.local %T". force_mda Force mail to be delivered by the MDA. When set, any mail from anywhere to anywhere will instead be delivered to the value of force_mda. It will also only be delivered locally, via the mda. This will let you have a very minimal mail set-up, which can ONLY handle local mail. For example: mda = "procmail -d %T" force_mda = "someuser" SEE ALSO
esmtp(1) AUTHOR
Jose Fonseca ESMTPRC(5)