LinuxQuestions.org
Review your favorite Linux distribution.
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 02-26-2010, 02:26 AM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
sendmail mailx


hi folks i run my own axigemn mail server. i emailed them yesterday about this and said its not part of configuring axigen, so we can't help you.

what i have is tux, my workhorse box, everyday stuff, and tux2 serverbox, on which axigen is running. my workhorse box, runs thunderbird to get its mail, from several servers mine being one.

i'd like mail on the comand line to be able to mail out to the world via my mail server. i don't want to get mail from tux2 or anyone else, in the maildir, thunderbird does that, fine.

i found this http://ubuntuforums.org/showthread.php?t=331137 , is that basically what i need to do, but point it at tux2?
 
Old 02-26-2010, 04:25 AM   #2
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
If you want to use mail(x) to send email without the need to run a mailserver locally, you can edit /etc/mail.rc and add
Code:
set smtp=x.x.x.x
where x.x.x.x is the IP of tux2 (you can also use the FQDN if you like).
Of course you have to configure axigen to allow relaying from tux.

Regards
 
Old 02-26-2010, 04:57 AM   #3
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
If you want to use mail(x) to send email without the need to run a mailserver locally, you can edit /etc/mail.rc and add
Code:
set smtp=x.x.x.x
where x.x.x.x is the IP of tux2 (you can also use the FQDN if you like).
Of course you have to configure axigen to allow relaying from tux.

Regards
cheers mate, will that still allow local delivery ?
 
Old 02-26-2010, 05:29 AM   #4
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
What local delivery?
You said you get your mail from the box running axigen (tux2). This is not going to change. All your mail will be delivered to axigen and you can get it using thunderbird from tux.
 
Old 02-26-2010, 05:37 AM   #5
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
What local delivery?
You said you get your mail from the box running axigen (tux2). This is not going to change. All your mail will be delivered to axigen and you can get it using thunderbird from tux.
it was a stupid question. I was wondering if (which I never do) said
mail johnh10000 would send mail be able to still send it localy or would that go through tux2?

I just changed every thing and am waiting for the tux2 apt-get autoremove to kill gnome, which it seems to be doing at the moment
 
Old 02-26-2010, 06:12 AM   #6
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
Yup, if you want to send mail to a local user (a user of tux), it will go through tux2 and of course it won't be delivered if you are not running a local mailserver on tux.
 
Old 02-26-2010, 06:17 AM   #7
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
Yup, if you want to send mail to a local user (a user of tux), it will go through tux2 and of course it won't be delivered if you are not running a local mailserver on tux.
so i'd go with
mail johnh10000@tux.isa-geek.org

that mail addr is "feed" from axigen. ok thanks most helpful.

btw it did uninstall gnome-desktop, i haveput it back on now !!!
 
Old 02-26-2010, 07:14 AM   #8
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
Yup, if you want to send mail to a local user (a user of tux), it will go through tux2 and of course it won't be delivered if you are not running a local mailserver on tux.
Axigen tell me axigen is fine, now.

Code:
set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via D
set smtp=192.168.1.4
 
Old 02-27-2010, 02:52 AM   #9
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
Yup, if you want to send mail to a local user (a user of tux), it will go through tux2 and of course it won't be delivered if you are not running a local mailserver on tux.
it would seem i am. thinking about it, how would it send locally?

whilst waiting for something i decided to check local mail!!

Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  johnh10000@virginmedia.com
    Mailing to remote domains not supported

------ This is a copy of the message, including all the headers. ------

Return-path: <johnh10000@tux>
Received: from johnh10000 by tux.isa-geek.org with local (Exim 4.69)
        (envelope-from <johnh10000@tux>)
        id 1Nkyoe-0003tC-GH
 
Old 02-27-2010, 06:17 AM   #10
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
fixed it

sudo dpkg-reconfigure exim4-config

did the trick
 
  


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
mailx problem jobleep Slackware 7 11-02-2008 08:29 AM
mailx pramka SUSE / openSUSE 3 05-01-2008 04:18 PM
Syntax using nail (mailx) for smtp without postfix or sendmail Casey Linux - Server 2 06-12-2007 01:41 AM
mailx csaunders Red Hat 1 05-23-2007 08:55 AM
installing mailx skverma_in Linux - Software 2 11-25-2004 10:56 PM

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

All times are GMT -5. The time now is 11:13 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