unix-mail to external websites/addresses


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unix-mail to external websites/addresses
# 1  
Old 11-02-2006
unix-mail to external websites/addresses

Hi all,

I would like to know if I can send unix mail to 'external email addresses'.

My unix server is leo@ABCcompany.com.

I am able to send emails to firstname.lastname@ABCcompany.com.

But, we have some email addresses in our team on our parent company's server - ex: firstname.lastname@ParentCompany.com. The emails to these folks are not going through.

I was wondering two things 1) can we send emails to external addresses? 2) If so, do you think I have to contact my network adminstrator so that he can change the permissions/settings so that I could send emails externally.

I have also tried sending a test email to my personal account on @yahoo.com and that email did not go through.

Please help. Thank you in advance.
# 2  
Old 11-02-2006
To connect local mail to the outside internet, you'll need a Mail Transfer Agent like sendmail.
# 3  
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question