Sponsored Content
Top Forums UNIX for Dummies Questions & Answers unix-mail to external websites/addresses Post 302094974 by BOFH on Thursday 2nd of November 2006 10:16:19 AM
Old 11-02-2006
In general you should be able to send a message to any server that accepts the incoming connection. You can see that it's working for local servers. Configuration issues at either server or in between can prevent the successful delivery of your message.

For example, if your unix server isn't in DNS and the ParentCompany server will only accept e-mail from DNS resolvable systems, your incoming connection will not be accepted.

Many viruses set up a mini smtp server on the Windows workstation which churns out spam/virus e-mails. I've configured our network to refuse to allow port 25 connections from any workstation not specifically configured as a mail transfer agent.

You can test these by attempting a connection manually

Code:
$ telnet parentcompany.com 25

If you don't get anything (generally a banner of some sort is displayed), you're probably being blocked at your local company firewall. If you get a banner, you can try to build a session and see what happens:

Code:
$ telnet parentcompany.com 25
220 mail.parentcompany.com ESMTP Postfix
HELO abccompany.com
250 Hello abccompany.com
MAIL FROM: <joy.k@abccompany.com>
250 Ok
RCPT TO: <my.friend@parentcompany.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Example Message
From: joy.k@abccompany.com
To: my.friend@parentcompany.com

Yo,

Sending a test message.

  Later,
Joy
.
250 Ok: queued as 45334
QUIT
221 Bye

The lines that begin with numbers are server responses. The other lines are what you're typing.

You should get either something like the above session, or you might receive an error.

In both of these situations, the best way to resolve this is to configure your server to route e-mail through your local MTA and let it deliver e-mail. You'll have to check your e-mail server's configuration to see what the options are to make this setting.

Carl
 

10 More Discussions You Might Find Interesting

1. IP Networking

unix and websites

Does Anyone know how to create domains ahead of another domain? example http://domain.example.com Any Information would be of great help. Thank you. (2 Replies)
Discussion started by: bhjunx
2 Replies

2. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

3. Shell Programming and Scripting

How can i send mail to multiple addresses in same domain in bash?

Suppose i have a txt file that is the list of the addresses,something like: lala0045 john james lala0234 george james and i want to send an email to lala0045@blabla.com and lala0234@blabla.com,the same domain...what is the exact syntax i should use in my script? there is a command... (10 Replies)
Discussion started by: bashuser2
10 Replies

4. Shell Programming and Scripting

Echo - Sending mail to multiple addresses

Hi, If I want my script to send a mail to multiple recipients I can do the following: if then echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com fi Can this also be done something like: ... (1 Reply)
Discussion started by: runnerpaul
1 Replies

5. UNIX for Dummies Questions & Answers

Teaching myself Unix - Need websites and other pointers

Hi, I am new to Unix. I've started with a book "Unix for Dummies". Please help, any websites with extensive amount of practice exercises are needed. I need to practice! Also I would appreciate any books that are good for beginners. Thanks to all! (1 Reply)
Discussion started by: zamcruiser
1 Replies

6. Shell Programming and Scripting

Perl - match e-mail addresses in multiple files

Hi, I'm trying to write a script that will check multiple files in a directory (all the relevant filenames begin "TT04.NOTES") for e-mail addresses, and then print these addresses to screen with a count at the bottom. I'm a bit of a novice with Perl but thought it would be the best tool for the... (2 Replies)
Discussion started by: wf1974
2 Replies

7. UNIX for Dummies Questions & Answers

Sending through an external e-mail account

Hi guys. After several Google hours, i've failed to find a solution to my problem, maybe my google skills arent that good - but i hope someone could help me figure this out. I'm running a ubuntu server 11.04 with postfix installed. I have installed Request tracker 4 and configured it to read... (2 Replies)
Discussion started by: spirm8
2 Replies

8. UNIX for Advanced & Expert Users

Mutt to use external mail server

Hi, Using mutt im triggering a mail with attachment to 2 different recipient. How can i use gmail/official mail server to send mails using mutt service only. kindly shed some idea Script which i use now SUBJECT="Mail from myserver" EMAIL="user1@mail.com,other@mail.com"... (0 Replies)
Discussion started by: Paulwintech
0 Replies

9. Shell Programming and Scripting

Extract e-mail addresses on a page

Hi I normally ask questions on coding but I think there is a code that can do this. I have regular text throughout my file and I want to extract all e-mail addresses from it (rather than going and searching each one). E-mails all have @ so I assume there is a way. Thanks Phil (6 Replies)
Discussion started by: phil_heath
6 Replies

10. UNIX for Beginners Questions & Answers

Sifting out mail addresses with grep and regex

Hi there from a newbie. So, I have this huuuge portion of mail addresses with names interlaced.. looks like: "name1" <mail1@domain1.com>, "name2" <mail2@domain2.com> ... Sometimes there are no names, just mailaddress. My thought was to use regex with grep. I saved the list in file ma and... (2 Replies)
Discussion started by: dr_xemacs
2 Replies
CALIBRE-SMTP(1) 						      calibre							   CALIBRE-SMTP(1)

NAME
calibre-smtp - part of calibre SYNOPSIS
calibre-smtp [options] [from to text] DESCRIPTION
Send mail using the SMTP protocol. calibre-smtp has two modes of operation. In the compose mode you specify from to and text and these are used to build and send an email message. In the filter mode, calibre-smtp reads a complete email message from STDIN and sends it. text is the body of the email message. If text is not specified, a complete email message is read from STDIN. from is the email address of the sender and to is the email address of the recipient. When a complete email is read from STDIN, from and to are only used in the SMTP negotiation, the message headers are not modified. Whenever you pass arguments to calibre-smtp that have spaces in them, enclose the arguments in quotation marks. OPTIONS
--version show program's version number and exit -h, --help show this help message and exit -l, --localhost Host name of localhost. Used when connecting to SMTP server. -o, --outbox Path to maildir folder to store failed email messages in. -f, --fork Fork and deliver message in background. If you use this option, you should also use --outbox to handle delivery failures. -t, --timeout Timeout for connection -v, --verbose Be more verbose COMPOSE MAIL Options to compose an email. Ignored if text is not specified -a, --attachment File to attach to the email -s, --subject Subject of the email SMTP RELAY Options to use an SMTP relay server to send mail. calibre will try to send the email directly unless --relay is specified. -r, --relay An SMTP relay server to use to send mail. --port Port to connect to on relay server. Default is to use 465 if encryption method is SSL and 25 otherwise. -u, --username Username for relay -p, --password Password for relay -e, --encryption-method Encryption method to use when connecting to relay. Choices are TLS, SSL and NONE. Default is TLS. WARNING: Choosing NONE is highly insecure SEE ALSO
The User Manual is available at http://manual.calibre-ebook.com Created by Kovid Goyal <kovid@kovidgoyal.net> calibre-smtp (calibre 0.8.51) January 2013 CALIBRE-SMTP(1)
All times are GMT -4. The time now is 03:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy