mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #1152] Issue with emailfrom #903
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Technoblazed on GitHub (Oct 24, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1152
I've been using LGSM for a while as well as the newly introduced emailfrom without any issues, however over the last few days I've been getting an error when sending emails with the emailfrom field.
I've tried finding what's causing the issue, but have no idea. Any clues?
EDIT: Also, it is not mail server related, it works fine without the emailfrom variable set.
@Technoblazed commented on GitHub (Oct 24, 2016):
Having looked into this further, Line 234 in alert_email.sh currently reads:
-ais no longer the correct method for my OS - Ubuntu 16.10. This-ais used for attachments. Not sure if this is the same on other distros, but the correct format should now be:Where
-ris the from address.@UltimateByte commented on GitHub (Oct 24, 2016):
Hi,
Thanks for reporting.
Here is my --help output on Debian.
http://hastebin.com/subizucezo.sql
Can you please post yours on Ubuntu 16.04 ?
@Technoblazed commented on GitHub (Oct 24, 2016):
EDIT: Correction, I'm on Ubuntu 16.10. Recently upgraded and forgot.
@UltimateByte commented on GitHub (Oct 24, 2016):
Ubuntu... Come on !
Can you please post the output of
dpkg-query -l '*' | grep mailso that i can see what mail senders you got ?@Technoblazed commented on GitHub (Oct 24, 2016):
http://hastebin.com/ocezowayeq.swift
@UltimateByte commented on GitHub (Oct 24, 2016):
You're pretty fast. :)
Here is mine on Debian 8 for comparison.
http://hastebin.com/wufuyirawa.swift
Maybe install mailx ?
@Technoblazed commented on GitHub (Oct 24, 2016):
I already have mailx ._.
@UltimateByte commented on GitHub (Oct 24, 2016):
I'm not sure, emails are still kinda mystic to me, just trying to see if it's a user issue rather than GSM/Distro one. @dgibbs64 @cedarlug might know more than i do about it. :)
Seems to me like mailx isn't installed:
un mailx <none> <none> (no description available)-rwouldn't work on Debian though, so a more universal solution would be great.Gotta go, catch you later on that (in 5-6 hours or so).
@Technoblazed commented on GitHub (Oct 24, 2016):
And later :D
@UltimateByte commented on GitHub (Oct 24, 2016):
Ubuntu... Brrrr ! I guess i'm becoming a Debian elitist !
Feel free to try stuff other than -r, you got my Debian --help output, if we cannot find a solution, we're gonna have to use a conditional check to send the mail :) Cya !
@cedarlug commented on GitHub (Oct 24, 2016):
Could you both (@UltimateByte & @Technoblazed) post the results of:
In almost every distribution, the real mail program is a symlink to sendmail. And when invoked as sendmail, adheres to the sendmail syntax regardless of what it really is (exim4, mailx, ...).
My take would be that if you convert the mail command to the sendmail equivalent and invoke sendmail to send your message, it will work on almost every platform.
@Technoblazed commented on GitHub (Oct 24, 2016):
readlink -f $(which sendmail)was incorrect, following output below:@cedarlug commented on GitHub (Oct 24, 2016):
There goes my theory.
@Technoblazed commented on GitHub (Oct 24, 2016):
I know it works on 16.04 using the current method. Something must have changed in 16.10 though :/
@UltimateByte commented on GitHub (Oct 25, 2016):
@cedarlug
@UltimateByte commented on GitHub (Oct 27, 2016):
So any key to make this more universal ?
@JimTR commented on GitHub (Oct 29, 2016):
the command (ran from the base directory e.g cd /) as root only returns -
root@vps99696888:/# ls -l $(which sendmail) -rwxr-xr-x 1 root root 26648 Apr 13 2016 /usr/sbin/sendmail root@vps99696888:/#the read link command also returns the same, just wondering how you manage to get 52 results back ?
@Technoblazed commented on GitHub (Oct 29, 2016):
@JimTR We ran in game directories, not root.
@JimTR commented on GitHub (Oct 29, 2016):
Ok I don't understand I have also ran the same command as a user same result ... I am wondering why you have so many entries ?
@Technoblazed commented on GitHub (Oct 29, 2016):
Not certain, but it's irrelevant none the less.
EDIT: Total is just the amount of file system blocks present under that user.
@cedarlug commented on GitHub (Oct 30, 2016):
@JimTR Their results are just the directory entries, because
$(which sendmail)returns empty. As a result, they're just getting the output ofls -lfor the current directly.A system lacking a symlink to sendmail wasn't at all what I expected for a modern Linux deployment.
@UltimateByte commented on GitHub (Oct 30, 2016):
Makes sense now, but doesn't solve the actual issue !
@dgibbs64 commented on GitHub (May 4, 2017):
I can confirm that -r works on some distros and doesnt on others. However i believe that -r is probably more common. I will update the email from to use -r instead.
@lock[bot] commented on GitHub (Jul 18, 2018):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.