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 01-26-2009, 05:14 PM   #1
markovick
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
need help with sendmail


i got a vps running fedora core 9
i use it to host my site , i got 2 problems
first one being that sendmail is only listenning
on localhost (i want it to listen globally so webmaster@domain.com emailing would be possible),which
brings me the 2nd , how do i set it to accept emails
that are for webmaster@domain and forward em to another
address? , i wouldnt say im a total linux noob
but im not an expert either so please make it simple
so basically i wanna set sendmail to listen globally
and not just on localhost and that it will allow
relaying to webmaster@domain and forward it to another
address and of course still allow all relays from localhost
like it already does , please help , thx in advance
 
Old 01-26-2009, 06:42 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by markovick View Post
sendmail is only listenning on localhost
Look in your sendmail.mc and you'll see a line that starts with "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1". Comment it out the M4 way by putting "dnl # " in front of it. Now regenerate your sendmail.cf by changing into the /etc/mail directory and running 'make all' or 'm4 sendmail.mc > sendmail.cf' or with some distributions restarting the SysV initscript will work.


Quote:
Originally Posted by markovick View Post
how do i set it to accept emails that are for webmaster@domain and forward em to another address?
Create an unprivileged user account, for example "markovick". Now add a line "webmaster: markovick" in /etc/(mail/)aliases. Now run 'newaliases' (or 'sendmail -bi') to make it stick and test it.
 
  


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
Sendmail config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
Sendmail ignores aliases with sendmail daemon stopped phavn Solaris / OpenSolaris 1 12-01-2008 02:50 PM
m4 sendmail.mc > sendmail.cf generate unwanted result on OpenSolaris johncsl82 Solaris / OpenSolaris 1 09-08-2008 11:25 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

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

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