Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Virtual Mailhosting System with Postfix Guide
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lokelo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2002
Posts: 101
Location: Maryland, USA

PostPosted: Mon May 24, 2004 1:03 pm    Post subject: Problems with Virtual Mailhosting System with Postfix Guide Reply with quote

I am trying to set up a mail server on my gentoo box. I just finished step 2, with installing postfix and now am trying to test my postfix setup with mutt. I have never used mutt before so I am unsure if my problem is a mutt issue, or with postfix.

First, I kept getting ~/.maildir not a maildir error after mutt asked me if it should make the .maildir. So following advice in the forums, i went ahead and installed courier-imap as it contained the maildirmake command. I then deleted the .maildir and used maildirmake to create one. No more complaints about it not being a maildir.

But now when i send an email with mutt It is not recieved. I tried sending mail to "root" and "root@localhost" and a couple external emails and none have been sent or recieved. I sent these messages as root if that makes a difference. Any ideas cuz i'm studk and dont want to proceed until this issue is resolved.
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Mon May 24, 2004 1:43 pm    Post subject: Reply with quote

is postfix running (/etc/init.d/postfix status)? If it isn't running, then there is no medium to send the mail with. ;)

You shouldn't have to use maildirmake on all your users. I found when I had that same maildir message, after sending a message using mutt, the error disappeared.

To make mutt a little bit easier to use, you can test using this command line:
Code:

mutt -s 'test' -x user
<type your message>
.


_________________
only the paranoid survive
Back to top
View user's profile Send private message
lokelo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2002
Posts: 101
Location: Maryland, USA

PostPosted: Mon May 24, 2004 2:02 pm    Post subject: Reply with quote

That seems to work much better now. However, any messages going outside of my system are coming back as undeliverable because it is being rejected by the recipients mail servers because the host does not exist. Its being bounced as coming from root@host.domain.tld instead of root@domain.tld like it should. Any idea about that?
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Mon May 24, 2004 2:17 pm    Post subject: Reply with quote

ah, just follow the steps for editing the main.cf file in /etc/postfix. ;)

Here is a sample that I've changed:
Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = my.domain.org
mydomain = my.domain.org
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain
local_recipient_maps = $alias_maps $virtual_mailbox_maps
virtual_transport = virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_minimum_uid = 1000
virtual_gid_maps = static:$vmail-gid
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = static:$vmail-uid
virtual_mailbox_base = /
unknown_local_recipient_reject_code = 450
mynetworks = 172.0.0.0/24, 127.0.0.0/8
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
local_transport = local
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command =
      PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
      xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.19/sample
readme_directory = /usr/share/doc/postfix-2.0.19/readme
default_destination_concurrency_limit = 2
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases
home_mailbox = .maildir/


oooh, looks like I need to do some config file cleaning.. ;)

anyway, just follow the tutorial from here on out and you should be good..

just FYI, when I had first set up my mailhost all my mails to RoadRunner or AOL addresses were blocked since my mailhost wasn't setup on their servers. I had to get corporate internet service and get setup with that so my mail would go through. You may want to check and make sure that this isn't happening. You may be able to get away with not upgrading to business class service, but if you sweet-talk them enough maybe they'll setup your mailhost.. afterall, Postfix does a great job of denying relay requests.. ;)
_________________
only the paranoid survive
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon May 24, 2004 5:53 pm    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks to Networking & Security.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum