Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Feb 22, 2010 11:40 pm 
Offline
Senior Newbie

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 13
Location: Toronto, Ontario
I followed the Using Postfix with Courier and MySQL on Ubuntu 9.10 (Karmic), but am having some trouble getting mail delivered.

I set up my domain and username in the database, but when I try to use mailx to send the welcome message, it does not get delivered (I assume it should show up under /home/vmail, is that correct?).

I took a look at the /var/log/mail.log log and found the following:

Code:
Feb 23 03:11:39 localhost postfix/pickup[1216]: 7498B104BF: uid=0 from=<root>
Feb 23 03:11:39 localhost postfix/cleanup[1392]: 7498B104BF: message-id=<20100223031139.7498B104BF@mydomain.com>
Feb 23 03:11:39 localhost postfix/qmgr[21034]: 7498B104BF: from=<root@mydomain.com>, size=321, nrcpt=1 (queue active)
Feb 23 03:11:39 localhost postfix/trivial-rewrite[1395]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb 23 03:11:39 localhost postfix/local[1396]: 7498B104BF: to=<daniel@mydomain.com>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "procmail -a "$EXTENSION"". Command output: sh: procmail: not found )
Feb 23 03:11:39 localhost postfix/cleanup[1392]: 7CE15104C0: message-id=<20100223031139.7CE15104C0@mydomain.com>
Feb 23 03:11:39 localhost postfix/bounce[1399]: 7498B104BF: sender non-delivery notification: 7CE15104C0
Feb 23 03:11:39 localhost postfix/qmgr[21034]: 7CE15104C0: from=<>, size=2062, nrcpt=1 (queue active)
Feb 23 03:11:39 localhost postfix/trivial-rewrite[1395]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb 23 03:11:39 localhost postfix/qmgr[21034]: 7498B104BF: removed
Feb 23 03:11:39 localhost postfix/local[1396]: 7CE15104C0: to=<root@mydomain.com>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.3.0, status=bounced (Command died with status 127: "procmail -a "$EXTENSION"". Command output: sh: procmail: not found )
Feb 23 03:11:39 localhost postfix/qmgr[21034]: 7CE15104C0: removed


So it looks to me like it's not finding the users I set up and is bouncing the mail.

I'm pretty new at this stuff, I'd appreciate any help you can give! :)

(If it matters, my domain is not pointing to my Linode IP yet, but I did add mail.mydomain.com to my /etc/hosts file -- it doesn't look like it's trying to use the old mail server though because daniel@mydomain.com is a functioning email address there so shouldn't be bouncing)


Last edited by dvandersluis on Wed Feb 24, 2010 12:51 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 11:57 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Hmm, looks like it wants to use procmail, but it isn't installed.

Code:
apt-get install procmail

... should clear it up!


Top
   
 Post subject:
PostPosted: Tue Feb 23, 2010 12:02 am 
Offline
Senior Newbie

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 13
Location: Toronto, Ontario
Ah, thank you! :)

Another question now, though... where should I be finding the mail after it's delivered? /home/vmail is still empty.


Top
   
 Post subject:
PostPosted: Tue Feb 23, 2010 6:40 am 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
I don't use procmail, so this could be completely wrong, but doesn't procmail deliver the mail from the Postfix mail queue to the local users mail directory?

So /home/user/Maildir or something like this.


Top
   
 Post subject:
PostPosted: Wed Feb 24, 2010 3:22 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
dvandersluis wrote:
Another question now, though... where should I be finding the mail after it's delivered? /home/vmail is still empty.

Try
Code:
postconf | grep -E 'spool|mailbox'

and see what home_mailbox and related configuration options are set to.


Top
   
 Post subject:
PostPosted: Wed Feb 24, 2010 11:55 am 
Offline
Senior Newbie

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 13
Location: Toronto, Ontario
Okay, I think I figured it out. The values for myhostname and mydestination weren't set properly in my postconf and instead of using the virtual domains, postfix was just using local user accounts as mailboxes (and delivering to /var/mail/username). I fixed the configuration and now it's delivering to /home/vmail/domain/username like I believe it should be.

Thanks to everyone for their help! :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group