You are not logged in.

#1 2011-03-07 02:13:03

nighthawk
Member
Registered: 2009-11-29
Posts: 20

VItrual Mail Server

Hey,

i've been trying to find a way for a vitrual mail server setup but can't seem to find one that actually work, i've followed this guide completely:

https://wiki.archlinux.org/index.php/Postfix
and also tried https://wiki.archlinux.org/index.php/Si … ail_System

but neither one have seemed to work.

Offline

#2 2011-03-07 06:00:58

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: VItrual Mail Server

Sooooo, what's your question.........?

Offline

#3 2011-03-07 09:51:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: VItrual Mail Server

Nobody can help you without some information. Instead of saying it doesn't work, describe in detail  the issues you have experienced while following the wiki guides.

https://wiki.archlinux.org/index.php/Fo … ow_to_Post is a good reference.

Offline

#4 2011-03-09 16:04:08

nighthawk
Member
Registered: 2009-11-29
Posts: 20

Re: VItrual Mail Server

[root@eric certs]# mkpop3cert
bash: mkpop3cert: command not found

Offline

#5 2011-03-09 17:02:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: VItrual Mail Server

wiki typo - the command is mkpop3dcert, something you could easily have found out for yourself.

Please fix the wiki page.

Offline

#6 2011-03-09 18:37:41

nighthawk
Member
Registered: 2009-11-29
Posts: 20

Re: VItrual Mail Server

Now everything is good, except now php can't send mail:

<?php
$to      = 'eric1@ns.sympatico.ca';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: eric@ericglazebrook.in' . "\r\n" .
    'Reply-To: eric@ericglazebrook.in' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

doesn't send mail like it should.

Last edited by nighthawk (2011-03-09 18:38:18)

Offline

#7 2011-03-09 22:54:57

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Offline

#8 2011-03-10 00:19:15

nighthawk
Member
Registered: 2009-11-29
Posts: 20

Re: VItrual Mail Server

When i do the mail() function in php, and check that email it never comes threw. i was wondering why that would be,

Offline

#9 2011-03-10 03:50:43

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: VItrual Mail Server

Do you have an MTA installed and configured? What does /var/log/mail.log say about the message?

Offline

#10 2011-03-10 19:41:38

nighthawk
Member
Registered: 2009-11-29
Posts: 20

Re: VItrual Mail Server

Mail.log says:

ar 10 11:40:16 ericglazebrook postfix/postfix-script[5246]: starting the Postf$
Mar 10 11:40:16 ericglazebrook authdaemond: modules="authmysql", daemons=5
Mar 10 11:40:16 ericglazebrook authdaemond: Installing libauthmysql
Mar 10 11:40:16 ericglazebrook authdaemond: Installation complete: authmysql
Mar 10 11:40:16 ericglazebrook postfix/master[5247]: daemon started -- version $
Mar 10 11:40:30 ericglazebrook postfix/pickup[5300]: 4BFB0376D05D: uid=33 from=$
Mar 10 11:40:30 ericglazebrook postfix/cleanup[15386]: 4BFB0376D05D: message-id$
Mar 10 11:40:30 ericglazebrook postfix/qmgr[5299]: 4BFB0376D05D: from=<http@eri$
Mar 10 11:40:30 ericglazebrook postfix/smtp[15423]: 4BFB0376D05D: to=<eric1@ns.$
Mar 10 11:40:30 ericglazebrook postfix/cleanup[15386]: 7F73E376D05E: message-id$
Mar 10 11:40:30 ericglazebrook postfix/qmgr[5299]: 7F73E376D05E: from=<>, size=$
Mar 10 11:40:30 ericglazebrook postfix/bounce[15443]: 4BFB0376D05D: sender non-$
Mar 10 11:40:30 ericglazebrook postfix/qmgr[5299]: 4BFB0376D05D: removed
Mar 10 11:40:30 ericglazebrook postfix/virtual[15452]: 7F73E376D05E: to=<http@e$
Mar 10 11:40:30 ericglazebrook postfix/qmgr[5299]: 7F73E376D05E: removed

Offline

#11 2011-03-10 22:46:51

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: VItrual Mail Server

OK, well those log entries are cut off, so all the useful information is missing...

From what I can see, it looks like it is being bounced:

postfix/bounce[15443]: 4BFB0376D05D: sender non-$

Why? There's nothing to indicate the reason.
You might be able to view the bounce message in /var/spool/mail/http

Offline

#12 2011-03-10 23:43:17

nighthawk
Member
Registered: 2009-11-29
Posts: 20

Re: VItrual Mail Server

There is nothing in /var/sppol/mail/http it says no such file or folder.
but i managed to get a full log from mail.log

Mar 10 15:38:51 ericglazebrook postfix/pickup[27691]: 0C1E4376D06B: uid=33 from=<http>
Mar 10 15:38:51 ericglazebrook postfix/cleanup[9349]: 0C1E4376D06B: message-id=<20110310233851.0C1E4376D06B@eric.localdomain>
Mar 10 15:38:51 ericglazebrook postfix/qmgr[5299]: 0C1E4376D06B: from=<http@eric.localdomain>, size=345, nrcpt=1 (queue active)
Mar 10 15:38:51 ericglazebrook postfix/smtp[11693]: 0C1E4376D06B: to=<eric1@ns.sympatico.ca>, relay=mx.bellaliant.net[4.59.182.109]:25, delay=0.1, delays=0.02/0.01/0.06/0.02, dsn=5.0.0, status=bounced (host mx.bellaliant.net[4.59.182.109] said: 553 eric.localdomain does not exist (in reply to MAIL FROM command))
Mar 10 15:38:51 ericglazebrook postfix/cleanup[9349]: 26B3C376D06C: message-id=<20110310233851.26B3C376D06C@eric.localdomain>
Mar 10 15:38:51 ericglazebrook postfix/qmgr[5299]: 26B3C376D06C: from=<>, size=2232, nrcpt=1 (queue active)
Mar 10 15:38:51 ericglazebrook postfix/bounce[9382]: 0C1E4376D06B: sender non-delivery notification: 26B3C376D06C
Mar 10 15:38:51 ericglazebrook postfix/qmgr[5299]: 0C1E4376D06B: removed
Mar 10 15:38:51 ericglazebrook postfix/virtual[9365]: 26B3C376D06C: to=<http@eric.localdomain>, relay=virtual, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "http@eric.localdomain")
Mar 10 15:38:51 ericglazebrook postfix/qmgr[5299]: 26B3C376D06C: removed

Offline

#13 2011-03-11 05:02:36

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: VItrual Mail Server

status=bounced (host mx.bellaliant.net[4.59.182.109] said: 553 eric.localdomain does not exist (in reply to MAIL FROM command))

You are sending mail from "eric.localdomain" which isn't a valid domain outside your network. You need to setup Postfix to append the correct domain.

Last edited by fukawi2 (2011-03-11 05:03:03)

Offline

Board footer

Powered by FluxBB