LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-02-2012, 01:20 AM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
how to connect pc to mail server to send mail from my own pc via mailserver


my company had own mail server which in located internally in building...i configured mail server using qmail mta same as mail server running...i can send mail internaly locally from my pc means i created some user and tested sending mail.
but i can't send mail outside network( globally).so iam wondering that is it possible to send mail from my pc(mail server configured) via my company server to outside network..linking my company server to send mail outside....

Last edited by centos123; 05-02-2012 at 01:36 AM.
 
Old 05-02-2012, 03:47 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Fix the problem. qmail can't send out.

Why can't qmail send out? What's the error? Often it's as simple as the domain name you chose. If your isp doesn't know about your local company domain, and gets a mail from a strange domain, of course it will reject it.

The cure can be as simple as letting your mail server think it's on the isp's domain.
 
Old 05-02-2012, 12:21 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@OP

You can add the company mail server in /var/qmail/control/smtproutes like this:
Code:
:mail.company.com
Regards
 
Old 05-03-2012, 04:17 AM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
my compant has registered 2 domain & can i put both domain on smptroute file.:abc.co.in
:def.co.in

does this really work.?...can i test it ?..actually my mail server and my own pc are on same network.company server is running and if test goes wrong does it will effect server?
 
Old 05-03-2012, 05:02 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Ηι,

Quote:
my compant has registered 2 domain & can i put both domain on smptroute file.:abc.co.in
:def.co.in

does this really work.?...can i test it ?
Please note that what I've posted above is for the case you want to use your company's mail server as a relay, to send out mail. This is irrelevant from the domains hosted in your company's mail server. So you only need to use once your company's mail server FQDN in smtproutes.
And yes, you can test it. Just restart qmail after editing. And don't forget to make backups of the files you edit.

Quote:
actually my mail server and my own pc are on same network.company server is running and if test goes wrong does it will effect server?
If you're editing your mail server in your pc, there is nothing to worry about the company mail server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Mail server wont send or Recieve mail esigande Linux - Software 5 04-27-2010 04:09 PM
Would like to set up a mail server on Suse sles 11 to send and receive mail tiburondelcaribe Linux - Newbie 2 09-11-2009 11:30 AM
How to allow roaming mail client to send mails via its mail server satimis Linux - Server 0 01-28-2009 08:59 AM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Mail Server Issues; Can't Send E-mail (using sendmail) Vegetarian Smoker Linux - Software 1 06-18-2006 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration