Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix configuration issue
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
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Wed May 09, 2007 7:58 am    Post subject: postfix configuration issue Reply with quote

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
View user's profile Send private message
sp7xfq
n00b
n00b


Joined: 28 Dec 2005
Posts: 60
Location: Poland, Kielce

PostPosted: Wed May 09, 2007 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Wed May 09, 2007 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu May 10, 2007 7:14 am    Post subject: Reply with quote

Don't try to bodge it in Postfix. Make sure any client/script uses an appropriate FROM address.
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Thu May 10, 2007 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Fri May 11, 2007 9:26 am    Post subject: Reply with quote

anyone know how to fix this or use another tool to send a e-mail.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri May 11, 2007 6:33 pm    Post subject: Reply with quote

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
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