LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-06-2007, 06:23 AM   #16
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 348

Rep: Reputation: 31

Yes! You were able to deliver even on your previous test:

[/CODE]
Aug 6 16:09:14 server1 postfix/local[12695]: 098FD31001: to=<test@server1.example.com>, orig_to=<test>, relay=local, delay=0.32, delays=0.17/0.11/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 6 16:09:14 server1 postfix/qmgr[12677]: 098FD31001: removed
[/CODE]

Add this to your main.cf:

Code:
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
----------
 
Old 08-06-2007, 08:00 AM   #17
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Original Poster
Rep: Reputation: 30
i have addd the lines ..and reloaded and restarted the postfix..now i think ther isnt any error ..pls see tyhe log

(now how do i see this mail ..same problem...)
1.what i am planing to do is i will put mail account say 10 account
like emailuser1@example.com ...emailuser10@example.com..and for this do i have to create user's in linux ..??..this is no good at all. Is there any other way to create account ?
Is it possible to use it for my local domain (example.com in this case) for my intranet computers ? so mail can be delivered and received in Intranet. ( I will go further to use them with internet too..like if it will be emailuser2@example.com it will be directed to local and if it has user@yahoo.com/anything it will go to internet offcourse By same MTA.
Is this possible ..? I cant say about it but i think it is possible ..
2.what is the role of sql package ?
Aug 6 18:24:05 server1 postfix/postfix-script: refreshing the Postfix mail system
Aug 6 18:24:05 server1 postfix/master[12839]: reload configuration /etc/postfix
Aug 6 18:24:18 server1 postfix/postfix-script: stopping the Postfix mail system
Aug 6 18:24:18 server1 postfix/master[12839]: terminating on signal 15
Aug 6 18:24:21 server1 postfix/postfix-script: starting the Postfix mail system
Aug 6 18:24:21 server1 postfix/master[14186]: daemon started -- version 2.3.6, configuration /etc/postfix
Aug 6 18:25:48 server1 postfix/pickup[14190]: 640D431001: uid=0 from=<root>
Aug 6 18:25:48 server1 postfix/cleanup[14206]: 640D431001: message-id=<20070806125548.640D431001@server1.example.com>
Aug 6 18:25:48 server1 postfix/qmgr[14191]: 640D431001: from=<root@server1.example.com>, size=460, nrcpt=1 (queue active)
Aug 6 18:25:48 server1 postfix/local[14208]: 640D431001: to=<mailer1@server1.example.com>, orig_to=<mailer1>, relay=local, delay=0.45, delays=0.27/0.13/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 6 18:25:48 server1 postfix/qmgr[14191]: 640D431001: removed
[root@server1 ~]#

what i got from pop3 :

[root@server1 /]# telnet server1.example.com 110
Trying 192.168.2.2...
Connected to server1.example.com (192.168.2.2).
Escape character is '^]'.
+OK POP3 server1.example.com 2004.89mdv server ready
user mailer1
+OK User name accepted, password please
pass #password
+OK Mailbox open, 0 messages
quit
+OK Sayonara
Connection closed by foreign host.
[root@server1 /]#

Last edited by soroccoheaven; 08-06-2007 at 08:28 AM.
 
Old 08-06-2007, 10:35 PM   #18
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 348

Rep: Reputation: 31
Quote:
(now how do i see this mail ..same problem...)
Do have /var/spool/mail or /var/mail? Try to create /var/mail if doesn't have and change your mail_spool_directory:

mail_spool_directory = /var/mail

Quote:
1.what i am planing to do is i will put mail account say 10 account
like emailuser1@example.com ...emailuser10@example.com..and for this do i have to create user's in linux ..??..this is no good at all. Is there any other way to create account ?
Creating Linux/Unix accounts for email is not prudent. What you would need is virtual domains. The previous link that I gave you is the one that I'm using but almost all are compiled from source. So if your distro doesn't allow you to compile anything, you might considering using Slackware since this is the distro that I built that system.

Or as an option, though I haven't use this yet, try Dovecot.

Quote:
Is it possible to use it for my local domain (example.com in this case) for my intranet computers ? so mail can be delivered and received in Intranet.
Absolutely yes!

The concept of mail delivery is that when the accounts are local, meaning, it is hosted within the server itself, it would be delivered locally. But when the domain or accounts are not hosted within the server, its MTA would know where to deliver it through the help of your internet gateway and the worlds gateways/routers DNS servers. For internet-wide mail deliveries, it is the MTA's are communicating in behalf of the email users.

----------
 
Old 08-06-2007, 11:59 PM   #19
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Original Poster
Rep: Reputation: 30
it is mail_spool_directory = /var/spool/mail

and main.cf is
mail_spool_directory = /var/spool/mail
#mynetworks = 127.0.0.1/8, 192.168.2.0/24
home_mailbox = Mailbox <h3> (IS it ok ???)</h3>
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

as you can see, home_mailbox = Mailbox
Now i am able to see the mail for every User (created ) in reaspective folder named as Mailboox (/home/mailuser/Mailbox).

[admin@server1 ~]$ cat /home/test/Mailbox
From root@server1.example.com Mon Aug 6 19:54:52 2007
Return-Path: <root@server1.example.com>
X-Original-To: test
Delivered-To: test@server1.example.com
Received: by server1.example.com (Postfix, from userid 0)
id ADD1631001; Mon, 6 Aug 2007 19:54:52 +0530 (IST)
Date: Mon, 06 Aug 2007 19:54:52 +0530
To: test@server1.example.com
Subject: ssddd
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20070806142452.ADD1631001@server1.example.com>
From: root@server1.example.com (root)

data
#df

Now dovecote is installed but no idea how to implement/use it.need anything to be configured ?..
one more thing can you just give me an idea about how the whole process is taking place ..i am confused now
 
Old 08-07-2007, 12:09 AM   #20
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Original Poster
Rep: Reputation: 30
One more thing whenever i telnet to port 110 i get no mail message ...why ? as you can see from previou log i have few mail user test. pls explain.

[root@server1 ~]# telnet server1.example.com 110
Trying 192.168.2.2...
Connected to server1.example.com (192.168.2.2).
Escape character is '^]'.
+OK POP3 server1.example.com 2004.89mdv server ready
user test
+OK User name accepted, password please
pass testpass
pass password
+OK Mailbox open, 0 messages
 
Old 08-07-2007, 01:28 AM   #21
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 348

Rep: Reputation: 31
Quote:
Now dovecote is installed but no idea how to implement/use it.need anything to be configured ?..
http://wiki.dovecot.org/

Haven't use this either.

Quote:
one more thing can you just give me an idea about how the whole process is taking place ..i am confused now
You must read about postfix configuration first to be able to learn something. Even I is not that well versed yet with postfix. You can buy "The Book of Postifx" to make your learning faster or read its online documentation.

http://www.postfix.org/documentation.html

Quote:
One more thing whenever i telnet to port 110 i get no mail message ...why ? as you can see from previou log i have few mail user test. pls explain.
It might be that your ipop3d server is expecting your mbox type mailbox somewhere else or in the usual Unix /var/spool/mail or /var/mail and not in /home/user/Mailbox that you currently implement.

The later can be solved by implementing dovecot or the howto I gave you through virtual domains using MySQL and Courier.

--------
 
Old 08-07-2007, 02:07 AM   #22
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Original Poster
Rep: Reputation: 30
ok..thanks again
i am having dovecot running ..and going to have some more funda's and basics..
[root@server1 mail]# telnet 192.168.2.2 143
Trying 192.168.2.2...
Connected to server1.example.com (192.168.2.2).
Escape character is '^]'.
* OK Dovecot ready.
a login test #password
a OK Logged in.
a examine inbox
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1186466311] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
a OK [READ-ONLY] Select completed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

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

All times are GMT -5. The time now is 08:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration