LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-28-2008, 08:11 PM   #1
bittus
Member
 
Registered: Aug 2006
Posts: 153

Rep: Reputation: 16
Unhappy Mail aliases not working


Hi,

I have configured my mail server in Fedora8 as :

Postfix + Amavis + Clamd + SpamAssassin

I am facing two problems :-

1)Mail aliases not working. The corresponding entry in main.cf is

Quote:
alias_database = hash:/etc/postfix/aliases

2)I can check my mail by logging on to the server locally and using "mutt", but the mails cannot be retreived to any other machines using email clients. I am using outlook express and get the error

Quote:
There was a problem logging onto your mail server. Your User Name was rejected. Account: 'Bimal', Server: 'xxx.xxx.xxx.xxx', Protocol: POP3, Server Response: '-ERR Unknown AUTHORIZATION state command', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC91

At the same time the maillog in the server says
Quote:
Feb 28 18:09:21 XXXXXX ipop3d[9725]: Unexpected client disconnect, while reading line user=??? host= xxxxxxxx [abc.def.ghi.jkl]
Can any one help me resolving these issues . . . . .

Last edited by bittus; 10-19-2010 at 07:30 AM.
 
Old 02-28-2008, 08:34 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you have an alias like

bill: bob

then mail to bill will in fact be delivered to bob (and you will see a suitable log entry). This doesn't mean that you can log in as bill - you would have to log in as bob.

Also, you need to convert the aliases file to a database by using the command

postalias /etc/aliases

once you've made any changes to aliases.

Or perhaps you are talking about virtual users and virtual aliases? That is a totally separate topic.

Edit - may seem a bit rambly - I rather mixed you questions into one

Edit 2 - aliases is usually in /etc not /etc/postfix. Do you have the correct location?

Last edited by billymayday; 02-28-2008 at 08:41 PM.
 
Old 02-28-2008, 08:38 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On the pop issue, do you have a pop server running? have a look at dovecot if not. You should be able to just fire up the service and it should work out of the box.

I imagine that mutt can connect directly to the mailbox without a server. Outlook can't

Last edited by billymayday; 02-28-2008 at 08:39 PM.
 
Old 02-28-2008, 11:47 PM   #4
bittus
Member
 
Registered: Aug 2006
Posts: 153

Original Poster
Rep: Reputation: 16
Hi buddy,

Thanks for your reply . . . . .

The mail alias problem is solves after issuing the command "postalias /etc/postfix/aliases" as my aliases are placed in that folder.


But I dont understand how to solve the pop issue. What is dovecot ? Can u pls brief ?
 
Old 02-28-2008, 11:54 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Dovecot is an imap/pop3 server - it interfaces between mail clients (like Outlook) and the mail on the server.

In the case of Maildir format, each message is a file stored in a directory structure. Mbox keeps each user's mail in one file. Something needs to sit over these and deal with the mail clients and this is what Dovecot and similar servers do.

If Dovecot wasn't installed by default, it will certainly install with "yum install dovecot" as it's the standard server for Fedora.

I doubt you will need to configure it at all for a basic setup. Make sure it's installed, start it with "service dovecot start" and set it to start on boot with "chkconfig dovecot on".

You may need saslauth as well for authenticating users. Same process as above - no config needed. I think you only need it for smtp authentication - try without first.

Last edited by billymayday; 02-28-2008 at 11:56 PM.
 
Old 02-29-2008, 02:14 AM   #6
bittus
Member
 
Registered: Aug 2006
Posts: 153

Original Poster
Rep: Reputation: 16
Hi boss,

I installed dovecot and I got thru that errors. Now I dont get any errors. Thank you so much for the support. But some other prob has crept into.

I will explain the confuguration.

Now I have two mail servers out of which one is old and the other one new. What I have done is mapped the mail directory(/var/mail) and home directory (/home) of the first server to that of second server using NFS. But now NFS is acting very slow and hence the dovecot and other programs accessing the mail dirs are under panic.

I would like to tuneup NFS according to the need of mail programs. Can I know the block size to access mailboxes, so that I can specify the block size in the export share.

Thank you
 
Old 02-29-2008, 04:15 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I've never tried mail serving across NFS connections, but read up on postfix on NFS at http://www.postfix.org/NFS_README.html

Why don't you just run dovecot on the old server and connect to it directly with mail clients?
 
Old 03-03-2008, 06:39 PM   #8
bittus
Member
 
Registered: Aug 2006
Posts: 153

Original Poster
Rep: Reputation: 16
Hi,

I figured out the problem. Actually postfix was real slow when I tried to with NFS. This was due to the collisions in our network.

Thank you so much for your support.
 
  


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
outgoing mail aliases? soylentgreen Linux - Server 1 07-03-2007 08:29 PM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases fhd Linux - Networking 1 01-09-2005 06:05 PM
Wildcard Mail Aliases js_530 Linux - Networking 2 09-10-2003 11:15 PM
ISP mail aliases + Domain mail how? HoundDog Linux - Networking 1 08-09-2003 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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