Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi there .. i am a new user of linux (CentOS 5.5).
I am trying to use Postfix as my first step in the learning to send / receive email. I have tried almost all ways but failed to send email. Linux is indeed quit difficult.
I installed posfix 2.3 using yum install postfix. I dont have any DNS yet.
my postfix main.cf settings are:
myhostname = example.com
mydomain = localhost (even tried example.com, $mydomain here but failed)
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 192.168.1.100/24, 127.0.0.1/8
no aliases database but
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
/etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.15.1
service postfix start [ok]
maillog:
Aug 26 10:32:22 domain postfix/master[5333]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 26 10:32:24 domain postfix/local[5384]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Aug 26 10:32:25 domain postfix/master[5333]: warning: process /usr/libexec/postfix/local pid 5384 exit status 1
Aug 26 10:32:25 domain postfix/master[5333]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
when I try to send local email using mail user, maillog shows:
Aug 26 10:49:47 domain postfix/qmgr[5536]: D6E1B2A0AD: from=<root@example.com>, size=319, nrcpt=1 (queue active)
Aug 26 10:49:47 domain postfix/qmgr[5536]: 2D66029D49: from=<root@localhost>, size=287, nrcpt=1 (queue active)
Aug 26 10:49:47 domain postfix/qmgr[5536]: AC46B29D4A: from=<root@localhost>, size=273, nrcpt=1 (queue active)
Aug 26 10:49:47 domain postfix/qmgr[5536]: 372DE2A0A8: from=<root@example.com>, size=303, nrcpt=1 (queue active)
Aug 26 10:49:47 domain postfix/qmgr[5536]: 920982A0BC: from=<root@example.com>, size=280, nrcpt=1 (queue active)
Aug 26 10:49:48 domain postfix/pickup[5535]: 5DF7229CB3: uid=0 from=<root>
Aug 26 10:49:48 domain postfix/cleanup[5537]: 5DF7229CB3: message-id=<20100826054948.5DF7229CB3@example.com>
and when I telnet localhost 25, it hangs with this message:
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Thanks for the reply. Yeh I managed to run it successfully and now can query using telnet as well.
My questions now:
1. How to send outbound email now? Because on the present settings I am unable to do so.
2. How to create virtual emails and domains? If possible, send me a url which has described setup of email server without mysql authentication.
For the second query read this tutorial.
As far as sending goes, you will need to have a proper dns settings and MX records for the domain pointing to your server. Else the sending of messages will fail with bounced back messages from the destination server. To use external server as relay for sending, search LQ. There is one very big discussion on the same.
Glad you got that part fixed. Now for the configuration of a 'full blown' mail server, there are various ways, all depending on your choice of software packages you prefer. Here are some links to two pretty complete guides and a site where you'll find lots of howtos, easy to follow, almost copy/paste to obtain what you want. Don't worry too much about the distros used, that's easily changed to your distro if you know your way around the one you use.
I would personally go for LDAP. You can have multiple servers authenticating with LDAP for multiple resources shared over a network. For learning firewalls on linux, you could start with netfilter.org.
You're welcome! I cannot tell you which one is the 'better' one. In my belief they both have advantages depending on the use. I only setup with MySQL and that works perfect for me. Never suffered slowness in MySQL access but then again I'm not using it on a large scale.
Here at LQ exists a great Security References thread which I think would be a great starting point if you're serious about security. In that thread you'll find lot's of links to Linux firewall howtos also so I suggest you start your reading there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.