LinuxQuestions.org
Help answer threads with 0 replies.
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 05-22-2007, 11:00 PM   #1
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Rep: Reputation: 15
Postfix mail receiving.


I'm so close. I'm on the verge of a breakthrough I know it!

I've forwarded the smtp port, I've shutdown iptables, and I think i've got the right configuration for postfix.

I have two emails with my domain.

#1 test@example1.serveftp.com

#2 sales@example1.serveftp.com

These are both test emails. I tried sending an email from my hotmail to test@example1.serveftp.com numerous times.

There seems to be some action going on in /var/log/mail.info I don't know how to interpret it though.

Maybe someone could help me out here.

Quote:
May 22 13:54:41 debian01 postfix/smtpd[3022]: connect from bay0-omc2-s38.bay0.hotmail.com[65.54.246.174]
May 22 13:54:41 debian01 postfix/smtpd[3022]: 7087539C165: client=bay0-omc2-s38.bay0.hotmail.com[65.54.246.174]
May 22 13:54:41 debian01 postfix/cleanup[3027]: 7087539C165: message-id=<BAY141-F171BA301E0D7FED8707BADFB350@phx.gbl>
May 22 13:54:41 debian01 postfix/qmgr[3008]: 7087539C165: from=<yo_muffinman@hotmail.com>, size=1316, nrcpt=1 (queue active)
May 22 13:54:41 debian01 postfix/local[3029]: 7087539C165: to=<test@debian01.vc.shawcable.net>, orig_to=<test@example1.serveftp.com>, relay=local, delay=0.19, delays=0.16/0.02/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 22 13:54:41 debian01 postfix/qmgr[3008]: 7087539C165: removed
May 22 13:54:41 debian01 postfix/smtpd[3022]: disconnect from bay0-omc2-s38.bay0.hotmail.com[65.54.246.174]
May 22 13:54:43 debian01 postfix/smtpd[3022]: connect from bay0-omc1-s17.bay0.hotmail.com[65.54.246.89]
May 22 13:54:46 debian01 postfix/smtpd[3022]: 1561F39C165: client=bay0-omc1-s17.bay0.hotmail.com[65.54.246.89]
May 22 13:54:46 debian01 postfix/cleanup[3027]: 1561F39C165: message-id=<BAY141-F7E09BE2DD03CA9D535FA3FB350@phx.gbl>
May 22 13:54:46 debian01 postfix/qmgr[3008]: 1561F39C165: from=<yo_muffinman@hotmail.com>, size=1282, nrcpt=1 (queue active)
May 22 13:54:46 debian01 postfix/local[3029]: 1561F39C165: to=<test@debian01.vc.shawcable.net>, orig_to=<test@example1.serveftp.com>, relay=local, delay=0.2, delays=0.17/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 22 13:54:46 debian01 postfix/qmgr[3008]: 1561F39C165: removed
May 22 13:54:46 debian01 postfix/smtpd[3022]: disconnect from bay0-omc1-s17.bay0.hotmail.com[65.54.246.89]
May 22 13:55:48 debian01 postfix/smtpd[3022]: connect from bay0-omc3-s32.bay0.hotmail.com[65.54.246.232]
May 22 13:55:48 debian01 postfix/smtpd[3022]: BBABC39C165: client=bay0-omc3-s32.bay0.hotmail.com[65.54.246.232]
May 22 13:55:48 debian01 postfix/cleanup[3027]: BBABC39C165: message-id=<BAY141-F85AA9C25730949AB36805FB350@phx.gbl>
May 22 13:55:48 debian01 postfix/qmgr[3008]: BBABC39C165: from=<yo_muffinman@hotmail.com>, size=1234, nrcpt=1 (queue active)
May 22 13:55:48 debian01 postfix/local[3029]: BBABC39C165: to=<test@debian01.vc.shawcable.net>, orig_to=<test@example1.serveftp.com>, relay=local, delay=0.16, delays=0.14/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 22 13:55:48 debian01 postfix/qmgr[3008]: BBABC39C165: removed
May 22 13:55:48 debian01 postfix/smtpd[3022]: disconnect from bay0-omc3-s32.bay0.hotmail.com[65.54.246.232]
May 22 13:55:56 debian01 postfix/smtpd[3022]: connect from bay0-omc3-s31.bay0.hotmail.com[65.54.246.231]
May 22 13:55:56 debian01 postfix/smtpd[3022]: E7E0539C165: client=bay0-omc3-s31.bay0.hotmail.com[65.54.246.231]
Something is not happening though. Mail is not being delivered. Any idea what is up?
 
Old 05-22-2007, 11:02 PM   #2
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Postfix main.cf

Quote:
myhostname = debian01.vc.shawcable.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = S0106001839d6ad0b.vc.shawcable.net debian01.vc.shawcable.net, localhost.vc.shawcable.net, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_mailbox_domains = example1.serveftp.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
Vmailbox

Quote:
test@example1.serveftp.com example1.serveftp.com/test/
sales@example1.serveftp.com example1.serveftp.com/sales/
# Comment out the entry below to implement a catch-all.
# @example.com example.com/catchall
# ...virtual mailboxes for more domains...
Virtual

My MX record is setup fine too.

Last edited by gloomz; 05-22-2007 at 11:04 PM.
 
Old 05-23-2007, 10:35 AM   #3
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Anybody? Can anyone help?
 
Old 05-24-2007, 12:32 AM   #4
stormpunk
LQ Newbie
 
Registered: Mar 2004
Distribution: windows 7
Posts: 21

Rep: Reputation: 2
That line that says dsn 2.0.0, staus=sent means your mail made it somewhere. In your case, you're handing it to procmail

Procmail is doing something with your email. Who knows what though. What's /etc/procmailrc or $HOME/.procmailrc say?

Where are you looking for your email? A possible spot for post-procmail-handled email is $HOME/mail/Inbox or something like that.
 
Old 05-24-2007, 11:22 AM   #5
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
What is procmail? Dang. I was pointing vmailbox to /var/mail/vhosts/example1.serveftp.com/test

Test being the mbox file.

Should it be a file or a directory?

But where did procmail come from.
 
Old 05-24-2007, 11:34 AM   #6
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Ok. It looks like procmail was handling my mail before, so I got rid of it.

Here are my config's now.

Main.cf

Quote:
myhostname = debian01.vc.shawcable.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = S0106001839d6ad0b.vc.shawcable.net debian01.vc.shawcable.net, localhost.vc.shawcable.net, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_mailbox_domains = example1.serveftp.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
I didn't change Vmailbox or Virtual at all so that doesn't matter.

Here are the latest logs. I sent another email from yo_muffinman@hotmail.com to test@example1.serveftp.com

/var/log/mail.info

Quote:
May 24 02:29:21 debian01 postfix/postfix-script: refreshing the Postfix mail system
May 24 02:29:21 debian01 postfix/master[2206]: reload configuration /etc/postfix
May 24 02:29:21 debian01 postfix/anvil[2386]: statistics: max connection rate 1/60s for (smtp:65.54.246.177) at May 24 02:27:21
May 24 02:29:21 debian01 postfix/anvil[2386]: statistics: max connection count 1 for (smtp:65.54.246.177) at May 24 02:27:21
May 24 02:29:21 debian01 postfix/anvil[2386]: statistics: max cache size 1 at May 24 02:27:21
May 24 02:29:37 debian01 postfix/smtpd[2405]: connect from bay0-omc3-s24.bay0.hotmail.com[65.54.246.224]
May 24 02:29:37 debian01 postfix/smtpd[2405]: 8668539C0B5: client=bay0-omc3-s24.bay0.hotmail.com[65.54.246.224]
May 24 02:29:37 debian01 postfix/cleanup[2410]: 8668539C0B5: message-id=<BAY141-F320C736CCB28BB01CA145FB340@phx.gbl>
May 24 02:29:37 debian01 postfix/qmgr[2404]: 8668539C0B5: from=<yo_muffinman@hotmail.com>, size=1276, nrcpt=1 (queue active)
May 24 02:29:37 debian01 postfix/smtpd[2405]: disconnect from bay0-omc3-s24.bay0.hotmail.com[65.54.246.224]
May 24 02:29:37 debian01 postfix/local[2412]: 8668539C0B5: to=<test@debian01.vc.shawcable.net>, orig_to=<test@example1.serveftp.com>, relay=local, delay=0.2, delays=0.16/0.02/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
May 24 02:29:37 debian01 postfix/qmgr[2404]: 8668539C0B5: removed
So I think it's being delivered somewhere, but I can't find out where.

For test, I specified it to go to /var/mail/vhosts/example1.serveftp.com/test

I think 'test' is supposed to be a file, and not a directory. So I made it a file. I'm not quite sure.

But my mail is being delivered somewhere, and I can't find it.
 
Old 05-24-2007, 02:03 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Good question I don't think I've ever seen mail delivered without the use of procmail or maildrop or something similar..

Here is the main.cf from my working mail server.. I am using courier in conjunction with postfix to handle pop3/IMAP access, and delivering mail to a Maildir/ instead of a mbox file.

Code:
mail:/var/log# postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no

biff = no
config_directory = /etc/postfix

content_filter = smtp-amavis:[127.0.0.1]:10024

home_mailbox = Maildir/
mailbox_command = /usr/bin/maildrop
mailbox_size_limit = 0

mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks.regexp

mydestination = mail.mydomain.com, localhost.mydomain.com, localhost, mydomain.com, localhost.localdomain
mynetworks = 192.168.0.0/24, 172.16.1.0/24, 127.0.0.1/24
myorigin = /etc/mailname
recipient_delimiter = +
smtpd_banner = $myhostname

smtpd_data_restrictions = reject_unauth_pipelining

smtpd_recipient_restrictions = 
  reject_non_fqdn_sender
  reject_non_fqdn_recipient
  reject_unknown_sender_domain
  reject_unknown_recipient_domain
  permit_mynetworks
  reject_unauth_destination
  reject_unauth_pipelining
  reject_invalid_hostname
  reject_rbl_client bl.spamcop.net
  reject_rbl_client list.dsbl.org
  reject_rbl_client zen.spamhaus.org
  reject_rbl_client dnsbl.sorbs.net
  permit

smtpd_sasl_auth_enable = no
 
Old 05-24-2007, 02:19 PM   #8
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Dang. So I shouldn't have gotten rid of procmail then. How do I get procmail to work with my setup then? And how do I find out where this mail is being delivered.

Where is procmail putting this thing?

My vmailbox says to put mail to test@example1.serveftp.com to /var/mail/vhosts/example1.serveftp.com/test

Now I need to get procmail to put mail there. Because obviously it ain't. That recent log doesn't have procmail installed. I got rid of it. But it still says mail is being delivered.

But where..
 
Old 05-25-2007, 04:59 PM   #9
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Cough cough bump.
 
Old 05-25-2007, 05:05 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
did you follow any particular how-to when setting up your server ? or did you just pick the components and wing it ?
 
Old 05-25-2007, 07:33 PM   #11
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
You definitely do not need procmail, maildrop or anything else. Postfix can deliver directly (and unless you have some particular reason not to, should)

Can you show

/etc/postfix/vmailbox

please
 
Old 05-25-2007, 11:36 PM   #12
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks for replying billy.

Vmailbox

Quote:

test@example1.serveftp.com example1.serveftp.com/test/
sales@example1.serveftp.com example1.serveftp.com/sales/
# Comment out the entry below to implement a catch-all.
# @example.com example.com/catchall
# ...virtual mailboxes for more domains...
 
Old 05-26-2007, 01:02 AM   #13
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
Try it without the trailing "/"
 
Old 05-26-2007, 11:40 AM   #14
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
I tried without the trailing slash, postmapped it, and then tried to email from my hotmail account, to test@example1.serveftp.com

This is the mail log.

Quote:

May 26 02:36:34 debian01 postfix/qmgr[2348]: 5723239C158: from=<yo_muffinman@hotmail.com>, size=1262, nrcpt=1 (queue active)
May 26 02:36:34 debian01 postfix/smtpd[2359]: disconnect from bay0-omc1-s32.bay0.hotmail.com[65.54.246.104]
May 26 02:36:34 debian01 postfix/local[2365]: 5723239C158: to=<test@debian01.vc.shawcable.net>, orig_to=<test@example1.serveftp.com>, relay=local, delay=0.26, delays=0.17/0.02/0/0.08, dsn=2.0.0, status=sent (delivered to mailbox)
May 26 02:36:34 debian01 postfix/qmgr[2348]: 5723239C158: removed
Mail is being delivered. But it's not going where it should go. Why? I don't know.
 
Old 05-26-2007, 05:47 PM   #15
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
try something like

find / -file test -atime -1

to find files called test < 1 day since last accessed
 
  


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
Help Me Please! I'm receiving mail from Postfix with a wrong time... DnDonna Linux - Newbie 1 08-05-2008 12:37 PM
Postfix DNS MX question.. receiving mail. waskelton4 Linux - Software 4 02-09-2006 03:31 PM
Postfix - Receiving Mail mmondok Linux - Software 3 10-21-2005 09:17 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Postfix Error: Not receiving mail ckenshol Linux - Newbie 16 05-15-2004 07:04 PM

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

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