View previous topic :: View next topic |
Author |
Message |
belrpr Guru

Joined: 22 May 2006 Posts: 440
|
Posted: Wed May 09, 2007 7:58 am Post subject: postfix configuration issue |
|
|
Hi,
I am just using postfix with the mail command.
All I want is send mails using the console (To send mail when backup is complete etc)
It sends mails but use this format:
myuser@myhostname.mydomain
Is it possible to at least change the part after @ because my mailserver doesn't allow mails from it for some reason (I guess because the domain doesn't exists). If the myuser could be replaced that would be a good thing.
I hope anyone could help me out.
Code: | smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = voka.be
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost.localdomain, localhost
relayhost = vkmail.voka.local
mynetworks = 127.0.0.0/8
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all |
|
|
Back to top |
|
 |
sp7xfq n00b


Joined: 28 Dec 2005 Posts: 60 Location: Poland, Kielce
|
Posted: Wed May 09, 2007 12:59 pm Post subject: |
|
|
Hello
Just change `myorigin` value Quote: | The myorigin parameter specifies the domain that appears in mail that is posted on this machine. The default is to use the local machine name, $myhostname, which defaults to the name of the machine. Unless you are running a really small site, you probably want to change that into $mydomain, which defaults to the parent domain of the machine name. |
_________________ Andrzej Sobczyk
Feel free to correct my English |
|
Back to top |
|
 |
belrpr Guru

Joined: 22 May 2006 Posts: 440
|
Posted: Wed May 09, 2007 11:20 pm Post subject: |
|
|
sp7xfq wrote: | Hello
Just change `myorigin` value Quote: | The myorigin parameter specifies the domain that appears in mail that is posted on this machine. The default is to use the local machine name, $myhostname, which defaults to the name of the machine. Unless you are running a really small site, you probably want to change that into $mydomain, which defaults to the parent domain of the machine name. |
|
I've put myorigin = test.be and still it doesn't change and yes I restarted postfix  |
|
Back to top |
|
 |
magic919 Advocate

Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu May 10, 2007 7:14 am Post subject: |
|
|
Don't try to bodge it in Postfix. Make sure any client/script uses an appropriate FROM address. |
|
Back to top |
|
 |
belrpr Guru

Joined: 22 May 2006 Posts: 440
|
Posted: Thu May 10, 2007 8:25 am Post subject: |
|
|
magic919 wrote: | Don't try to bodge it in Postfix. Make sure any client/script uses an appropriate FROM address. |
Yeah but the mail command can't do that! |
|
Back to top |
|
 |
belrpr Guru

Joined: 22 May 2006 Posts: 440
|
Posted: Fri May 11, 2007 9:26 am Post subject: |
|
|
anyone know how to fix this or use another tool to send a e-mail. |
|
Back to top |
|
 |
kashani Advocate


Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri May 11, 2007 6:33 pm Post subject: |
|
|
belrpr wrote: | magic919 wrote: | Don't try to bodge it in Postfix. Make sure any client/script uses an appropriate FROM address. |
Yeah but the mail command can't do that! |
emerge mailx
then use mailx -a
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
 |
|