Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix, etc.
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
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Fri Sep 06, 2002 11:11 pm    Post subject: Postfix, etc. Reply with quote

Hello, I am having a problem running postfix.

At first I was getting messages about an 'Unknown MTA' in the mail log, so I unmerged postfix and re-emerged it. That seemed to take care of the problem.

However, I don't get any messages I send to myself using pine. Logged in as root, I send a message to root@my.host.name, but I never receive it.

Here's the postfix log, which appears to be OK:

Code:

Sep  6 15:43:16 mud postfix/smtpd[4738]: connect from localhost[127.0.0.1]
Sep  6 15:43:17 mud postfix/smtpd[4738]: 23650141DD: client=localhost[127.0.0.1]
Sep  6 15:43:17 mud postfix/smtpd[4738]: disconnect from localhost[127.0.0.1]
Sep  6 15:43:17 mud postfix/pickup[4729]: 7E302141DE: uid=0 from=<root@mud.pwned.com>
Sep  6 15:43:17 mud postfix/cleanup[4740]: 7E302141DE: message-id=<Pine.LNX.4.44.0209061543100.4737-100000@mud.pwned.com>
Sep  6 15:43:17 mud postfix/qmgr[4730]: 7E302141DE: from=<root@mud.pwned.com>, size=531, nrcpt=1 (queue active)
Sep  6 15:43:18 mud postfix/local[4742]: 7E302141DE: to=<root@mud.pwned.com>, relay=local, delay=1, status=sent (maildir)


But nothing ever shows up in my inbox.

I'm not sure what the problem is, but I have a sneaky suspicion it has something to do with installing vcron, it installed some basic (ssmtp) service which I had to unmerge in order to install postfix. I have a feeling it left some permissions out of whack somewhere, or pine (nor I) have any clue where the e-mail is being stored.

MAIL is set to /var/mail/root ... no such file exists?

My main.cf: (the important parts)
Code:

queue_directory = /var/spool/postfix
myhostname = mud.pwned.com
mydomain = pwned.com
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain,
        mail.$mydomain, www.$mydomain, ftp.$mydomain


Permissions on /var:

Code:

mud var # ll /var
total 44
drwxr-xr-x    4 named    named        4096 Aug 28 20:24 bind/
drwxr-xr-x    5 root     root         4096 Sep  2 10:22 cache/
drwxr-xr-x    3 root     root         4096 Aug 22 10:33 db/
drwxr-xr-x    2 root     root         4096 Aug 30 00:26 empty/
drwxr-xr-x    9 root     root         4096 Sep  1 21:13 lib/
drwxrwxr-x    2 root     uucp         4096 Sep  6 14:50 lock/
drwxr-xr-x    7 root     root         4096 Sep  6 16:00 log/
lrwxrwxrwx    1 root     root           15 Aug 27 23:34 mail -> /var/spool/mail/
drwxr-xr-x    7 root     root         4096 Sep  6 14:50 run/
drwxr-xr-x    8 root     root         4096 Sep  2 14:07 spool/
drwxrwxrwt    3 root     root         4096 Sep  4 21:17 tmp/
drwx------    2 root     bin          4096 Sep  5 12:47 webmin/


Permissioins on /var/spool:

Code:

drwxr-x---    4 root     cron         4096 Aug 27 23:34 cron/
drwx------    3 lp       root         4096 Aug 31 00:33 cups/
drwxr-xr-x    2 root     root         4096 Sep  6 14:56 locate/
drwxr-xr-x    2 postfix  postfix      4096 Sep  6 15:43 mail/
drwxr-xr-x   14 root     root         4096 Sep  2 14:20 postfix/
drwxrwxrwt    2 root     root         4096 Aug 31 01:05 samba/


(I manually changed the owner of the mail directory to postfix)

Any clues? I am stumped ;(
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Sep 06, 2002 11:20 pm    Post subject: Reply with quote

Moving from Installing to Networking, since you've completed the installation procedure and are having problems running a server.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
jhboricua
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2002
Posts: 113

PostPosted: Fri Sep 06, 2002 11:28 pm    Post subject: Reply with quote

Where are u looking for your mail? It should be on /home/<your user>/.maildir/new or cur. Postfix is set by default to work with the maildir setup, not the procmail one common on other distros.

If those directories don't exist under your user account, then create them yourself and give it a try. Under the .maildir directory in your user home directory there should be 3 subdirectories calles cur, new and tmp

Just starting with the obvious stuff to make sure you didn't overlook something.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Fri Sep 06, 2002 11:35 pm    Post subject: Reply with quote

Hmm those directories exist, and there appears to be e-mail in my ~/.maildir/new directory. I guess pine just isn't picking it up for some reason, but at least I've got some other avenues to check on =)

Thansk!
Back to top
View user's profile Send private message
jhboricua
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2002
Posts: 113

PostPosted: Fri Sep 06, 2002 11:43 pm    Post subject: Reply with quote

It may be that the pine ebuild by default is having pine configured for a procmail setup instead of the maildir setup. You could look at the ebuild contents and see if there is a flag for maildir.


UPDATE: if you do a emerge -s pine, you'll see that there is a pine and a pine-maildir. I think you may have emerged the wrong one. If thats so, unmerge pine and then merge pine-maildir.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Fri Sep 06, 2002 11:50 pm    Post subject: Reply with quote

Omg you are gentoo ninja!

There wasn't any options in the ebuild to make a maildir install, there is however another package called pine-maildir. I think i'll try that =)
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Sep 07, 2002 12:14 am    Post subject: Reply with quote

OMG it doesn't work! Figures.

I thought that would work automagically, oh well, back to the drawing board.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Sep 07, 2002 12:37 am    Post subject: Reply with quote

Saw this on the Desktop page:

Important: Veteran sendmail or postfix junkies may be more used to storing mail in /var/spool/mail instead of in the user directories, and that mail is then stored in mbox format instead of in maildir format. It is not all that hard to reconfigure postfix and mutt to use the standard unix mailbox system (mbox) format instead. Edit /etc/postfix/main.cf to comment out home_mailbox and uncomment mail_spool_directory = /var/spool/mail. Make the mail spool directory with mkdir -p /var/spool/mail and restart postfix. That will take care of the mailer, for mutt you just have to edit /etc/mutt/Muttrc to use mbox with set mbox_type = mbox and the /var/spool/mail directory with set spoolfile=/var/spool/mail.

Since pine-maildir didn't seem to work, I'm going to change postfix to use /var/spool/mail and hope regular pine works. *Crossing fingers*
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Sep 07, 2002 12:45 am    Post subject: Reply with quote

Yep, works now =)

Ticket closed!
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